mpld3 extension for plotting data on a Leaflet map
pyLeaflet it an extension of mpld3 that provides geolocalized data visualization on a Leaflet layer as an overlay pane.
pyLeaflet is compatible with python 2.6-2.7 (python 3 not tested). It requires mpld3, matplotlib version 1.3 and jinja2 version 2.7+.
To install:
-
clone project
[~]$ git clone https://github.com/EmmanuelBoidot/pyLeaflet.git
-
within the git source directory, run
[~]$ python setup.py install
An example script is provided in this project: see ``example.py''. In order to plot geodata using pyLeaflet, proceed as for plotting a (lon,lat) figure on MatPlotLib, (using the longitude as the first coordinate and the latitude as the second coordinate). The first subplot will be rendered on the map.
- brush selector for timeseries display on the map
- images rendering
- animations (not supported by mpld3)