Robinson projection in GeoPandas

coordinate systemepsggeopandasplotpython

How can I apply Robinson projection in a GeoPandas plot?

import geopandas as gpd

world = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres'))
world.plot(column='pop_est')

enter image description here

Best Answer

Use the cartopy library to bring in the Robinson details.

More details on the GeoPandas Docs.

import geopandas as gpd
from cartopy import crs as ccrs

world = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres'))
robinson = ccrs.Robinson().proj4_init
world.to_crs(robinson).plot(column='pop_est')

enter image description here