- 积分
- 774
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2020-11-5
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
各位大佬,如图一所示,我绘制的多条折线在同一张图上,但是最上面那两条折线如果绘制在一起就会多出一个图形框(红色椭圆框内),我想请问一下大家这个应该怎样去除,使整体如图二那样,整体只有一个框架,先谢谢大佬们了。代码如下:
plot = new(3,graphic)
res=True
res@vpWidthF = 0.70 ; change aspect ratio of plot
res@vpHeightF = 0.25
res@trYMinF = 0.9
res@trYMaxF = 3
res1=True
res1@vpWidthF = 0.70 ; change aspect ratio of plot
res1@vpHeightF = 0.25
res1@tiYAxisSide = "Right"
res1@tfPolyDrawOrder = "PreDraw"
res1@tmXBOn = False
res1@tmXTOn = False
res1@tmYLLabelsOn = False
res1@tmYRLabelFontHeightF = 0.01 ; resize tick labels
res1@tmYRLabelsOn = True
res2=True
res2@vpWidthF = 0.70 ; change aspect ratio of plot
res2@vpHeightF = 0.25
plot(0) = gsn_csm_xy2(wks,x,y1,y11,res,res)
plot(1) = gsn_csm_xy(wks,x,y2,res1)
plot(2) = gsn_csm_xy(wks,x,y3,res2)
attachres1 = True
attachres1@gsnAttachPlotsXAxis = True ;; attaches along x-axis
attachres1@gsnAttachBorderOn = False ;; No border please
attachres2 = True
attachres2@gsnAttachPlotsXAxis = True ;; attaches along x-axis
attachres2@gsnAttachBorderOn = False ;; No border please
attachid1 = gsn_attach_plots(plot(0),plot(1:2),attachres1,attachres2)
pres = False ; No resources needed
maximize_output(wks,pres) ; Maximize plot on page
end
|
-
图一
-
图二
|