| 
 
	积分392贡献 精华在线时间 小时注册时间2020-6-9最后登录1970-1-1 
 | 
 
| 
本帖最后由 岫鹿森涌 于 2021-10-14 13:56 编辑
x
登录后查看更多精彩内容~您需要 登录 才可以下载或查看,没有帐号?立即注册 
  
 想要将亚洲转到图片下面
 
 复制代码fig = plt.figure(figsize=(12,16))
proj =ccrs.NorthPolarStereo(central_longitude=0)
leftlon, rightlon, lowerlat, upperlat = (-180,180,20,90)
# 生成一个圆形的Path
theta = np.linspace(0, 2*np.pi, 100)
center, radius = [0.5, 0.5], 0.5
verts = np.vstack([np.sin(theta), np.cos(theta)]).T
circle = mpath.Path(verts * radius + center)
fig_ax1 = fig.add_axes([0.05,0.5,0.8,0.4],projection =ccrs.NorthPolarStereo())#左下角坐标(x, y)、宽度、高度。
fig_ax1.gridlines(draw_labels=True,x_inline=False, y_inline=False)
fig_ax1.set_extent([leftlon, rightlon, lowerlat, upperlat], ccrs.PlateCarree())
fig_ax1.add_feature(cfeature.COASTLINE.with_scale('110m'))
fig_ax1.add_feature(cfeature.LAKES, alpha=0.5)
plt.tick_params(labelsize=20)
#fig_ax1.set_title('(a) 500hPa in 1983',loc='left',fontsize =20)
# 将该Path设置为GeoAxes的边界
fig_ax1.set_boundary(circle, transform=fig_ax1.transAxes)
cycle_zg3, cycle_lon = add_cyclic_point(zg3, coord=lon)
cycle_LON, cycle_LAT = np.meshgrid(cycle_lon, lat)
#c1=fig_ax1.contourf(cycle_LON, cycle_LAT, cycle_zg3, levels=np.arange(-250,251,25),zorder=0 , extend = 'both',transform=ccrs.PlateCarree(),cmap='PiYG_r')
fig_ax1.set_boundary(circle, transform=fig_ax1.transAxes)
cycle_la1, cycle_lon = add_cyclic_point(la1, coord=lon)
cycle_LON, cycle_LAT = np.meshgrid(cycle_lon, lat)
 
 | 
 
  |