Advertisement
mikael_upb

A map of Seoul

Feb 1st, 2022
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. fig, ax = plt.subplots(figsize = (12, 12), constrained_layout = True)
  2.  
  3. layers = plot(
  4. (37.53162, 126.98572), radius = 5000,
  5. ax = ax,
  6. layers = {
  7. 'perimeter': {},
  8. 'streets': {
  9. 'custom_filter': '["highway"~"motorway|trunk|primary|secondary|tertiary|residential|service|unclassified|pedestrian|footway"]',
  10. 'width': {
  11. 'motorway': 7,
  12. 'trunk': 7,
  13. 'primary': 6,
  14. 'secondary': 4,
  15. 'tertiary': 3,
  16. 'residential': 2,
  17. 'service': 1,
  18. 'unclassified': 1,
  19. 'pedestrian': 1,
  20. 'footway': .5,
  21. }
  22. },
  23.  
  24. },
  25. drawing_kwargs = {
  26. 'background': {'fc': '#FFFFFF', 'ec': '#FFFFFF', 'zorder': -1},
  27. 'perimeter': {'fc': '#FFFFFF', 'ec': '#FFFFFF', 'lw': 0, 'zorder': 0},
  28. 'streets': {'fc': '#000000', 'ec': '#475657', 'alpha': 1, 'lw': 0, 'zorder': 3},
  29. },
  30.  
  31. osm_credit = {'color': '#2F3737'}
  32. )
  33.  
  34. plt.savefig('../prints/seoul.png', dpi = 300)
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement