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 source code is here
geoplotlib requires:
- numpy
- pyglet 1.2.4
- note: in order for pyglet to work with ipython on Mac, version 1.2.4 or newer is needed
optional requirements:
- matplotlib for colormaps
- scipy for some layers
- pyshp for reading .shp files
to install from source run:
python setup.py install
or with pip:
pip install geoplotlib
A detailed user guide can be found in the wiki