球体间距和标记

2024-04-25 09:27:09 发布

您现在位置:Python中文网/ 问答频道 /正文

我用cartopy把一个2D地图投影到一个球体上,网格线继续做他们想做的事情。尤其是我的xz视角太乱了!你知道吗

我很乐意在两个方向上每隔30°放置一次。你知道吗

我现在的代码是这样的

plt.figure(figsize=(10, 10))

ax = plt.axes(projection=ccrs.Orthographic(0, -90))
ax.gridlines(color='black', linestyle='dotted',linewidth='2')
ax.imshow(img, origin="upper", extent=(-180, 180, -90, 90),
          transform=ccrs.PlateCarree())  # Important

形象 enter image description here

另外,我想给某些经络贴上270°的标签


Tags: 代码pltax方向事情figure球体xz