- 积分
- 8329
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2018-7-3
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
overlay画组图,plot(i)是contour_map,plot1、2和plotr叠加在plot(i)上,3种图的设置都是一样的,但只有plot(0)成功叠加了plotr(黑实线区域),不知道是什么原因,以下是相关脚本
plot = new(6,graphic)
wks = gsn_open_wks("eps","2")
gsn_define_colormap(wks,"BlueDarkRed18")
res = True
res@gsnFrame = False
res@gsnDraw = False
res@lbLabelBarOn = True
res@pmTickMarkDisplayMode = "Always"
;; 绘制的地图区域
res@gsnAddCyclic = False
res@mpLimitMode = "LatLon"
res@mpMinLatF = -23.5
res@mpMaxLatF = 23.5
res@mpMinLonF = 180
res@mpMaxLonF = 290
res@mpCenterLonF = 235
res@gsnLeftStringFontHeightF = 0.02
res@pmLabelBarOrthogonalPosF = 0.15
res@lbLabelFontHeightF = 0.02
res@tmYROn = True
res@tmYRLabelFontHeightF = 0.02
res@mpFillOn = True
res@mpLandFillColor = "gray"
res@mpGridSpacingF = 10. ;
res@mpFillDrawOrder = "PreDraw"
res@cnFillOn = True
res@cnLinesOn = False
res@cnLineLabelsOn = False
res@cnInfoLabelOn = False
res@lbLabelBarOn = True
;----------------------------------------------------------------------------------------------------------------------------
rel = True
rel@gsnFrame = False
rel@gsnDraw = False
rel@cnFillOn = False
rel@cnLinesOn = True
rell = rel
rel@cnLineLabelsOn = True
rel@gsnAddCyclic = False
rel@lbLabelBarOn = False
rel@cnInfoLabelOn=False
rel@cnLineThicknessF = 0.6
rel@trGridType = "TriangularMesh"
rel@cnLevelSpacingF=1
rel@cnLineDashPattern = 2
rell@cnLineThicknessF = 0.75
rell@cnLineDashPattern = 0
rell@cnLinesOn = True
rell@cnLineLabelsOn = False
plot(0) = gsn_csm_contour_map(wks,at(0,:,:),res)
plot(1) = gsn_csm_contour_map(wks,at(1,:,:),res)
res@gsnLeftString = "Q/mld"
plot(2) = gsn_csm_contour_map(wks,a1(0,:,:),res)
plot(3) = gsn_csm_contour_map(wks,a1(1,:,:),res)
res@gsnLeftString = "Advection"
plot(4) = gsn_csm_contour_map(wks,ad(0,:,:),res)
plot(5) = gsn_csm_contour_map(wks,ad(1,:,:),res)
plot1 = gsn_csm_contour(wks,at1(0,:,:),rel)
plot2 = gsn_csm_contour(wks,at1(1,:,:),rel)
overlay(plot(0),plot1)
overlay(plot(1),plot2)
rel@cnLineThicknessF = 0.66
rel@cnLineDashPattern = 0
rel@cnLinesOn = True
rel@cnLineLabelsOn = False
plotr = gsn_csm_contour(wks,regiony,rel)
do i=0,5
overlay(plot(i),plotr)
end do
lles = True
lles@gsnPanelFigureStrings = (/"-90-(-30)","-60-0","-90-(-30)","-60-0","-90-(-30)","-60-0"/)
;lles@gsnPanelLabelBar = True
lles@amJust = "TopLeft"
gsn_panel(wks,(/plot/),(/3,2/),lles)
|
-
|