Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fig, ax = plt.subplots(figsize = (12, 12), constrained_layout = True)
- layers = plot(
- (37.53162, 126.98572), radius = 5000,
- ax = ax,
- layers = {
- 'perimeter': {},
- 'streets': {
- 'custom_filter': '["highway"~"motorway|trunk|primary|secondary|tertiary|residential|service|unclassified|pedestrian|footway"]',
- 'width': {
- 'motorway': 7,
- 'trunk': 7,
- 'primary': 6,
- 'secondary': 4,
- 'tertiary': 3,
- 'residential': 2,
- 'service': 1,
- 'unclassified': 1,
- 'pedestrian': 1,
- 'footway': .5,
- }
- },
- },
- drawing_kwargs = {
- 'background': {'fc': '#FFFFFF', 'ec': '#FFFFFF', 'zorder': -1},
- 'perimeter': {'fc': '#FFFFFF', 'ec': '#FFFFFF', 'lw': 0, 'zorder': 0},
- 'streets': {'fc': '#000000', 'ec': '#475657', 'alpha': 1, 'lw': 0, 'zorder': 3},
- },
- osm_credit = {'color': '#2F3737'}
- )
- plt.savefig('../prints/seoul.png', dpi = 300)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement