1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| fig1 = plt.figure(figsize=(12,8))
f1_ax1 = fig1.add_axes([0.1, 0.6, 0.5, 0.5],projection = ccrs.PlateCarree(central_longitude=-50)) leftlon, rightlon, lowerlat, upperlat = (-100,0,-30,60) img_extent = [leftlon, rightlon, lowerlat, upperlat] contour_map(f1_ax1,img_extent,25,30) f1_ax1.set_title('1st pattern of left',loc='center',fontsize=18) f1_ax1.set_title('(a)',loc='left',fontsize=18) c1 = f1_ax1.contourf(sst_lon,sst_lat, lp[0], zorder=0, extend = 'both', levels =np.arange(-1,1.1,0.1),transform=ccrs.PlateCarree(), cmap=plt.cm.RdBu_r)
f1_ax2 = fig1.add_axes([0.15, 0.1, 0.4, 0.4],projection = ccrs.PlateCarree(central_longitude=105)) leftlon, rightlon, lowerlat, upperlat = (70,140,20,55) img_extent = [leftlon, rightlon, lowerlat, upperlat] b = contour_map(f1_ax2,img_extent,35,7) f1_ax2.set_title('1st pattern of right',loc='center',fontsize=18) f1_ax2.set_title('(c)',loc='left',fontsize=18) c2 = f1_ax2.contourf(pre_lon,pre_lat, rp[0], zorder=0, extend = 'both', levels =np.arange(-1,1.1,0.1), transform=ccrs.PlateCarree(), cmap=plt.cm.RdBu_r)
position=fig1.add_axes([0.16, 0.085, 0.35, 0.025]) fig1.colorbar(c2,cax=position,orientation='horizontal',format='%.1f',)
f1_ax3 = fig1.add_axes([0.6, 0.6, 0.4, 0.5]) f1_ax3.plot(time,le[0]) f1_ax3.set_title('(b)',loc='left',fontsize=18) f1_ax3.set_title('1st time series of left',loc='center',fontsize=18)
f1_ax4 = fig1.add_axes([0.6, 0.15, 0.4, 0.3]) f1_ax4.plot(time,re[0]) f1_ax4.set_title('(d)',loc='left',fontsize=18) f1_ax4.set_title('1st time series of right',loc='center',fontsize=18)
|