/geoplotlib

python toolbox for visualizing geographical data and making maps

Primary LanguagePythonMIT LicenseMIT

geoplotlib is a python toolbox for visualizing geographical data and making maps

A first example

To produce a dot 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.

Click on the image to see a short youtube video demo:

Examples gallery

Dot Map dot

Heatmap kde

Shapefiles shapefiles

Choropleth and GeoJSON choropleth

Voronoi tessellation voronoi

Spatial graph graph

All examples source code is here

Installation

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:

to install from source run:

python setup.py install

or with pip:

pip install geoplotlib

User Guide

A detailed user guide can be found in the wiki