mirror of
https://github.com/marceloprates/prettymaps.git
synced 2025-01-17 04:58:13 +01:00
prettymaps
A small set of Python functions to draw pretty maps from OpenStreetMap data. Based on osmnx, matplotlib and shapely libraries.
Install dependencies
Install dependencies with
$ pip install -r requirements.txt
Usage
On Python run:
from draw import plot
plot(f'Bom Fim, Porto Alegre', palette = ['red', 'blue'], layers = ['perimeter', 'landuse', 'water', 'streets'])
"Circle" plots (Jupyter Notebook):
Plotting districts (Jupyter Notebook):
More than one district at a time:
Languages
Jupyter Notebook
99.9%
Python
0.1%