- 积分
- 15741
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2019-10-6
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
简单粗暴想知道问题出哪了,就是照着官网程序改的
---------------------------下面是具体的res-----------------------------
wks = gsn_open_wks("png","Pre and T") ; send graphics to PNG file
;---Set common resources for all plots
res = True
res@vpWidthF = 0.8 ; Change the aspect ratio, but
res@vpHeightF = 0.4 ; make plot as large as possible.
; Uncomment these if you don't want to draw the first two plots
; res@gsnDraw = False
; res@gsnFrame = False
;---Set resources for "left" variable
resL = res
resL@xyLineThicknesses = 2. ; thicker line
resL@trYMaxF = Premax ; axis max
resL@trYMinF = Premin ; axis min
resL@tiMainString = " " ; title
resL@xyLineColor = "blue" ; line color
resL@tiYAxisFontColor = resL@xyLineColor
; resL@tiYAxisString = t@long_name ; axis string
;---Set resources for "right" variable
resR = res
; resR@xyDashPatterns = 1 ; dashed line for 2nd
resR@xyLineThicknesses = 2 ; thicker line
resR@trYMaxF = Tmax ; axis max
resR@trYMinF = Tmin ; axis min
resR@xyLineColor = "red" ; line color
resR@tiYAxisFontColor = resR@xyLineColor
; resR@tiYAxisString = p@long_name ; axis string
plot = gsn_csm_xy2(wks,year,Presum,Tavg,resL,resR)
;---Add the third line to the plots by using overlay
res@xyLineColor = resL@xyLineColor
; res@xyDashPattern = 7 ; different dash line but same color
res@xyLineThicknessF = 4
; res@tiMainString = " "
dum0 = gsn_add_polyline(wks,plot,year,PT_reg,res)
;
; Calling maximize_output is necessary, because the plot gets
; set back to the regular small size after the gsn_csm_xy2 call.
;
psres = True
maximize_output(wks,psres) ; Maximize new plots in frame.
end
|
-
|