在北极立体投影上绘制带有 cartopy 的恒定纬度线

Drawing lines of constant latitude with cartopy on North Polar Stereo projection

我想在 cartopy 北极立体地图上分别在北纬 88 度和 84 度处画两条线,但不知道该怎么做。

我试过:

gl = ax.gridlines(draw_labels=False, xlocs=[], ylocs=[88,84])
gl.n_steps = 90

还有:

gl = ax.gridlines(crs=ccrs.PlateCarree(), draw_labels=True,
                  linewidth=2, color='gray', alpha=0.5, linestyle='--')

并收到:

"Cannot label gridlines on a NorthPolarStereo plot. Only PlateCarree and Mercator plots are currently supported."

但似乎 ax.gridlines 没有设置北极立体声。

有人可以帮忙吗?

这应该会在下一版本 (0.18) 中提供。如果你 build/install 来自 git 大师的 CartoPy,你可以测试一下。