Skip to content
Advertisement

How to find the right cartopy projection?

I need to plot some data in Germany with cartopy. The data part of my plot works fine (so I deleted it for now). Unfortunately, the shape of the country is deformed due to the projection.

I am currently using the PlateCarree projection, but changing it to Orthographic or others created the same plot.

How to improve the shape?

Link to image of output vs. wanted output

Code:

JavaScript

Advertisement

Answer

The solution is transforming the Geopandas Dataframe using the same projection as explained here

New output: germany.png

New code:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement