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')
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.
Sign up to join this communityHow 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')
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')