geoplotlib is a python toolbox for visualizing geographical data and making maps
To produce a dot density map:
data = read_csv('data/bus.csv')
geoplotlib.dot(data)
geoplotlib.show()
This will launch the geoplotlib window and plot the points on OpenStreetMap tiles, also allowing zooming and panning. geoplotlib automatically handles the data loading, the map projection, downloading the map tiles and the graphics rendering with OpenGL.
Heatmap (Kernel Density estimation)
All examples including source code are here
geoplotlib requires:
- numpy
- pyglet
- note: in order for pyglet to work with ipython on Mac, this workaround is needed. Here you can find a fork of the pyglet dev branch with the workaround applied
optional requirements:
- matplotlib for colormaps
- scipy for some layers
- pyshp for reading .shp files
to install, run:
python setup.py install
A detailed user guide can be found in the wiki