Fix contours on global data plot#654
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
👋 Thanks for opening this PR! The Cookbook will be automatically built with GitHub Actions. To see the status of your deployment, click below. |
for more information, see https://pre-commit.ci
|
Thanks for figuring this out @brian-rose! I feel like this has the potential to confuse someone new to Cartopy, since this is a bug for a specific projection that might get fixed one day and not a general rule about avoiding data at the poles in plots. I think the simplest fix would be to change the projection to one that works and still distorts the contours a bit. |
Fair point! I'll push an update that switches to a different projection. |
|
The latest commit here switches over to the Equal Earth projection, with a scholarly reference to boot! |
Closes #652
When creating a mesh of data on a lat-lon grid at the end of the Cartopy notebook, just avoid having data exactly at the poles to work around a Mollweide projection limitation.Or, maybe better alternative, don't use Mollweide for this example!