Using Cartopy & matplotlib in Spyder, these 2 lines :
fig=plt.figure(1, figsize=(12,8))
ax1 = fig.add_subplot(1, 3, 1, projection=ccrs.Orthographic(central_latitude=-90,central_longitude=0))
produces the circular plot I want. (circular edge, good)
But after executing the next line :
ax1.set_extent([lon_ref.min(),lon_ref.max(),lat_ref.min(),lat_ref.max()], crs=ccrs.PlateCarree())
I find that my plot shows trimmed edges and is therefore no longer circular. (trimmed edges, bad)
How come this happens and how can I modify this to keep my plot circular?
Thank you.
I tried to change the extents in latitude, but it doesn't solve the problem.
You should probably set a circular boundary like in this example here. Also, you should remember you are looking at the South pole of the globe, which puts some limits on the range of longitudes and latitudes you can use to set the map extent (e.g. you cannot extend the maximum latitude beyond 0). In any case, you may need to show some gridlines and coastlines, to understand better how various extent values change your plot. Here is an example with two different extent values (left and right) and boundary types (top and bottom):
Circular boundary (bottom subplots) seems to prevent that "edge trimming":