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
First let me say that I'm very happy with cartopy. Most projections I have tried handle polygons that that intersect a pole surprisingly well. The one exception I've encountered is the Mollweide projection, which seems to get confused when when the polygon is closer to the pole than 89.0 N. Below is a script that reproduces the issue with a polygon representing the Arctic Ocean basin.
A plot with a PlateCarree projection behaves as expected:
Mollweide produces the following glitch with a polygon that intersects the pole
but behaves as expected if the polygon doesn't quite reach the pole (maxLat = 89 in the script).
@QuLogic, that's correct. It might be easiest if I repeat the snippet I tried here for clarity. At @pelson's suggestion, I made a new child class of Mollweide with a threshold smaller than the default value (1e5). I used a threshold of 1e4 and then 1e3 but the poles still seem to give the Mollweide plot the same difficulty.
First let me say that I'm very happy with cartopy. Most projections I have tried handle polygons that that intersect a pole surprisingly well. The one exception I've encountered is the Mollweide projection, which seems to get confused when when the polygon is closer to the pole than 89.0 N. Below is a script that reproduces the issue with a polygon representing the Arctic Ocean basin.
A plot with a

PlateCarree
projection behaves as expected:Mollweide
produces the following glitch with a polygon that intersects the polebut behaves as expected if the polygon doesn't quite reach the pole (
maxLat = 89
in the script).The text was updated successfully, but these errors were encountered: