- 积分
- 4235
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2018-7-23
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 lt5201314 于 2021-8-10 17:16 编辑
使用res@tmXBMode = "Explict"进行设置,但是横坐标还是没有变化
完整绘图代码如下:
;*****************绘图************************************************
wks = gsn_open_wks("png","filolr1980") ; send graphics to PNG fil
res = True ; plot mods desired
res@cnFillOn = True ; turn on color
res@cnFillPalette = "gui_default" ; set color map
res@vpWidthF = 0.5 ; change aspect ratio of plot
res@vpHeightF = 0.3
res@gsnMaximize = True ; maximize plot size
res@gsnCenterString = "filolr1980"
res@tmXTOn = False
res@tmYROn = False
res@tmYLMode="Explicit"
res@tmYLValues=(/0,4,8,12,16,20,24/)
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"/)
res@tmXBMode = "Explicit"
res@tmXBValues = (/31, 90, 151, 212, 273, 334/)
res@tmXBLabels = (/"2","4","6","8" ,"10","12"/)
;res@tmXBLabels = (/"Feb","Apr","Jun","Aug","Oct","Dec"/)
plot = gsn_csm_contour(wks, olr_avg(:,365:729), res) ; contour the variable
|
|