- 积分
- 774
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2020-11-5
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 推开世界的门 于 2021-10-14 15:32 编辑
各位大佬,晚上好,很冒昧打扰到大家,我想请问一下,下面的组图(图1)中第一张图怎么设置可以将其长度与最后一层的两张图的长度一样长,即垂直速度填色图的长可以跟下面两张折线图的长加起来一样长, 请大佬不吝指教,先谢谢大家,我的代码如下:
wks = gsn_open_wks ("png", "vertical_volecity" ) ; send graphics to PNG file
plot = new(3,graphic)
res = True ; plot mods desired
res@cnLineLabelsOn = False ; turn off line labels
res@cnFillOn = True ; turn on color fill
res@cnFillPalette = "BlAqGrYeOrReVi200" ; choose color map
res@lbLabelStride = 1 ; every other color
res@vcRefMagnitudeF = 1.5 ; define vector ref mag
res@vcRefLengthF = 0.015 ; define length of vec ref
res@vcGlyphStyle = "CurlyVector" ; turn on curly vectors
res@vcMinDistanceF = 0.01 ; thin out vectors
res@vcMapDirection = False
res@vcLineArrowThicknessF=2.0
;res@vpHeightF=0.6 ;图表高度
;res@vpWidthF=1.2 ;图表宽度
res1=True
res1@gsnXYBarChart = True;
res1@gsnXYBarChartBarWidth = 0.1 ;
;res1@vpHeightF=0.6 ;
;res1@vpWidthF=0.6 ;
res1@trYMinF = 3.5 ;
res1@trYMaxF = 4.5;
res1@trXMinF = 0.5 ;
res1@trXMaxF = 4.5 ;
res2=True
res2@gsnXYBarChart = True;
res2@gsnXYBarChartBarWidth = 0.1 ;
;res2@vpHeightF=0.3 ;
;res2@vpWidthF=0.3 ;
res2@trYMinF = 0 ;y
res2@trYMaxF = 4;
res2@trXMinF = 0.5 ;
res2@trXMaxF = 4.5 ;x
plot(0) = gsn_csm_pres_hgt_vector(wks,zz,u,z,res )
plot(1) = gsn_csm_xy(wks,x,y1,res1)
plot(2) = gsn_csm_xy(wks,x,y2,res2)
pres=True
pres@gsnPanelCenter=True
pres@gsnPanelRowSpec=True
gsn_panel(wks,plot,(/1,2/),pres)
end
|
-
图1
-
图2
|