O'Reilly logo

Matplotlib 2.x By Example by Aldrin Yim, Claire Chung, Allen Yu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Map-based visualization for geographical data

The following code will incorporate a map-based visualization, which is powered by the GeoPandas library. GeoPandas is very powerful in map-based visualization, especially as it incorporates Shapely for geometry visualization, Fiona for quick map-shape file access, and Descartes and Matplotlib for plotting. GeoPandas can be easily installed by simply using pip:

pip install geopandas 

There are some dependencies for GeoPandas, such as numpy, pandas, shapely, fiona, six, and pyrpoj. Readers may refer to the installation page of GeoPandas for more information (http://geopandas.org/install.html).

Getting GeoPandas to work on Windows is not an easy feat, due to strict version requirements for some ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required