- 积分
- 3367
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2017-4-12
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
在气象家园上看到的一段程序,给自己做个备忘,ncl中y轴的设置 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
;-------------------------------------------------------------------------------------------------------
|
|