You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Geopandas and Cartopy don't mix particularly well: when plotting a GeoDataFrame with df.plot(), which allows to automatically plot a column using a colormap, some cartopy projections are not displayed correctly on a matplotlib.ax.axes instance with a cartopy projection.
For our current applications, most projections we use are okay, especially when the extents are narrow (i.e. not the whole globe). Nonetheless, if this becomes a problem, we have the option of using ax.add_geometries() to plot the shapefile with colors using a method like in https://ipython-books.github.io/146-manipulating-geospatial-data-with-cartopy/.
The text was updated successfully, but these errors were encountered:
Geopandas and Cartopy don't mix particularly well: when plotting a
GeoDataFrame
withdf.plot()
, which allows to automatically plot a column using a colormap, some cartopy projections are not displayed correctly on amatplotlib.ax.axes
instance with a cartopy projection.For our current applications, most projections we use are okay, especially when the extents are narrow (i.e. not the whole globe). Nonetheless, if this becomes a problem, we have the option of using ax.add_geometries() to plot the shapefile with colors using a method like in https://ipython-books.github.io/146-manipulating-geospatial-data-with-cartopy/.
The text was updated successfully, but these errors were encountered: