- 积分
- 1973
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-9-5
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2018-9-21 09:10:25
|
显示全部楼层
wks=gsn_open_wks("pdf","86S-112E")
res =True
res@gsnFrame=False
res@gsnDraw=False
;res@tmXTMajorLengthF=0.01;X上轴刻度向下延伸的长度
;res@tiMainString ="AC "
res@tiMainString ="AC of T at 36N-112E"
res@tiMainFontHeightF=0.025
res@tiMainFontThicknessF=1
res@tiMainOffsetYF=0.05
res@xyDashPatterns=0
res@xyLineColors="black"
res@tiYAxisString="latitude"
res@tiXAxisString="Pentad"
res@pmTickMarkDisplayMode= "Always"
res@vpWidthF=0.6
res@vpHeightF=0.35
res@trXMaxF=365
res@trYMaxF=30
res@trYMinF=-30
res@vpXF=0.13
res@tmYLMode="Explicit"
res@tmYLValues=(/-30,-20,-10,0,10,20,30/)
res@tmYLLabels=(/"-30~S~o~N~S","-20~S~o~N~S","-10~S~o~N~S","0","10~S~o~N~N","20~S~o~N~N","30~S~o~N~N"/)
;------------------------------------X轴设置----------------------------------------------------------
res@tmXBMode="Explicit"
res@tmXBMinorOn=False
res@tmXBValues=(/0,27,52,78,102,127,152,177,202,227,252,279,302,329,352/)
res@tmXBLabels=(/"1","6","11","16","21","26","31","36","41","46","51","56","61","66","71"/)
res@tmXBTickStartF=1
res@tmXBTickEndF=366
res@tmXBTickSpacingF=25
;tmXBMinorThicknessF=1.2
resl=True
res@tmXUseBottom=False
res@tmXTMode="Explicit"
res@tmXTLabelStride=0;每个大刻度显示对应标注
res@tmXTValues=(/0,31,59,90,120,151,181,212,243,273,304,334/)
res@tmXTLabels=(/"jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"/)
res@tmXTLabelFontColor="black"
res@tmXTLabelDeltaF=-0.6;标注与刻度的距离
res@tmXTLabelFontHeightF=0.04
;------------------------------------设置垂直于X轴的参考线----------------------------------------------
;pres@gsnXRefLine=172
;res@gsnXRefLineDashPattern=16
;res@gsnXRefLineThicknessF=0.5
;------------------------------------设置垂直于Y轴的参考线----------------------------------------------
;res@gsnYRefLine=0
;res@gsnYRefLineDashPattern=16
;res@gsnYRefLineThicknessF=0.5
;-------------------------------------------------------------------------------------------------------
resl@tiYAxisString="Temperature"
resl@xyLineColors="blue"
resl@xyDashPatterns=1
resl@tiYAxisFontColor="blue"
resl@tmYRLabelFontColor="blue"
t=annual_pre_fourier-273.5
plot =gsn_csm_xy2(wks, time, y,t, res,resl)
这是一些画图设置,讲道理会有的呀,你看是少了一个什么设置吗 |
|