问题描述
我使用以下代码在 cartopy 的 northPolarstero 地图上绘制了一些点
fig,ax = plt.subplots(1,1,figsize=(8,8),subplot_kw={'projection': ccrs.northPolarstereo()})
ax.scatter([x[0] for x in max_coords[:-1]],[x[1] for x in max_coords[:-1]],color='k',s=50,marker='x',transform=ccrs.PlateCarree(),zorder=5,label='BSH Center 1980-2020')
ax.set_extent([-180,180,90,66],ccrs.PlateCarree())
ax.add_feature(cartopy.feature.LAND,edgecolor='black',zorder=1)
ax.legend(fontsize='x-large')
但我实际上只想绘制此图像的上半部分,如下所示:
如果我将 ```ax.set_extent`` 行更改为:
[90,-90,66]
要么
[-90,66]
它只是给了我情节的下半部分,就像这样:
有人知道如何获得上半部分吗?我还尝试将 northPolarstereo 线的 central_longitude
关键字设置为 +/- 180,但它只是显示错误的一半颠倒了。