Introduction to Map Plotting with GeoPandas
Explore how to visualize spatial data using GeoPandas by leveraging Matplotlib as the core plotting engine. Understand the interplay between GeoPandas and supporting packages for creating detailed static maps and begin handling basic point and polygon plotting with customizable styling options.
We'll cover the following...
Introduction
Plotting with GeoPandas is based on the Matplotlib library. Matplotlib provides a wide variety of visualization options, and by using it as a foundation, GeoPandas can create intricate maps with relative ease. The relationship between GeoPandas and Matplotlib is symbiotic: GeoPandas handles the geospatial data manipulation (i.e., coordinates, projections, etc.) and Matplotlib handles the actual plotting.
Although Matplotlib provides the foundation for plot rendering, other packages are used in the process. For example, the conversion from Shapely geometries, which are actually stored in a GeoDataFrame, to Matplotlib paths (disconnected segments) and patches (closed 2-D shapes with defined facecolor) is provided by the Descartes package. Moreover, mapclassify is used for the optimal classification of numerical values to ...