程序问答   发布时间:2022-06-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了我如何表达两种类型的 cartopy 轮廓大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何解决我如何表达两种类型的 cartopy 轮廓?

开发过程中遇到我如何表达两种类型的 cartopy 轮廓的问题如何解决?下面主要结合日常开发的经验,给出你关于我如何表达两种类型的 cartopy 轮廓的解决方法建议,希望对你解决我如何表达两种类型的 cartopy 轮廓有所启发或帮助;

我想一次表达 4 捆的 2 张图片,用 8 (2x4) 张图片。

另外,我想将 2 个不同的子图分别表示为 cartopy 的 northPolarstereo 和 PlateCarree。

再来一个,我想把最右边每一行的代表色条做个。

这是我的代码,请帮助我,这困扰着我!

fig,(ax1,ax2,ax3,ax4) = plt.subplots( ncols=4,figsize=(16,6),subplot_kw=Dict(projection=ccrs.northPolarstereo()))

p1 = ax1.contourf(lon,lat,row1[0],levels=p_lvs,cmap='jet',extend='both',transform=ccrs.PlateCarree())
ax1.set_title(title1[0])
ax1.set_extent([-180,180,40,90],ccrs.PlateCarree())

p2 = ax2.contourf(lon,row1[1],transform=ccrs.PlateCarree())
ax2.set_title(title1[1])
ax2.set_extent([-180,ccrs.PlateCarree())

p3 = ax3.contourf(lon,row1[2],transform=ccrs.PlateCarree())
ax3.set_title(title1[2])
ax3.set_extent([-180,ccrs.PlateCarree())

p4 = ax4.contourf(lon,row1[3],transform=ccrs.PlateCarree())
ax4.set_title(title1[3])
ax4.set_extent([-180,ccrs.PlateCarree())

# =====================================

fig2,(ax5,ax6,ax7,ax8) = plt.subplots(ncols=4,subplot_kw=Dict(projection=ccrs.PlateCarree()))

p5 = ax5.contourf(lon,olr_lat,row2[0],levels=o_lvs,extend='both')
ax5.set_title(title2[0])
ax5.set_extent([-180,-90,ccrs.PlateCarree())

P6 = ax6.contourf(lon,row2[1],extend='both')
ax6.set_title(title2[1])
ax6.set_extent([-180,ccrs.PlateCarree())

P7 = ax7.contourf(lon,row2[2],extend='both')
ax7.set_title(title2[0])
ax7.set_extent([-180,ccrs.PlateCarree())

p8 = ax8.contourf(lon,row2[3],extend='both')
ax8.set_title(title2[0])
ax8.set_extent([-180,ccrs.PlateCarree())

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

大佬总结

以上是大佬教程为你收集整理的我如何表达两种类型的 cartopy 轮廓全部内容,希望文章能够帮你解决我如何表达两种类型的 cartopy 轮廓所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。