- 积分
- 215
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-10-21
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
各位大神,我在画这张图的时候x轴采用的explicit,但出来的效果总是多出来几个xtick bar(如图),下面是我的resource,帮忙解决下,谢谢!
res@gsnPaperOrientation = "portrait"
res@gsnMaximize = True
res@vpHeightF = 0.35 ; change aspect ratio of plot
res@vpWidthF = 0.8
res@gsnDraw = False
res@gsnFrame = False
res@cnFillOn = True ; turn on color for contours
res@cnLinesOn = False ; turn off contour lines
res@cnLineLabelsOn = False ; turn off contour line labels
res@gsnSpreadColors = True ; use full color map
res@gsnRightStringFontHeightF = 0.015
res@sfYArray = dvar_r&z_t
res@sfXArray = dvar_r&lon
res@trYReverse = True ;reverse the Y-axis
res@tmYLMode = "explicit"
res@tmXBMode = "explicit"
res@gsnYAxisIrregular2Linear = True
res@gsnXAxisIrregular2Linear = True
res@tmYLValues = (/ 50. , 150. , 250., 350. /)
res@tmYLLabels = (/ "50", "150", "250", "350" /)
res@tmXBValues = (/ 160. , 180. , 200., 220., 240., 260./)
res@tmXBLabels = (/ "160E", "180", "160W", "140W", "120W", "100W" /)
res@tmXBOn = True
res@tmXTOn = False
res@tmYLOn = True
res@tmYROn = False
res@tmYLLabelFontHeightF = 0.018
res@tmXBLabelFontHeightF = 0.018
res@tmYLMajorOutwardLengthF = 0.01
res@tmYLMinorOutwardLengthF = 0.01
res@tmXBMajorOutwardLengthF = 0.01
res@tmXBMinorOutwardLengthF = 0.01
res@tiMainString = title
res@tiMainFontHeightF = 0.024
plot = gsn_csm_contour(wks, dvar_r, res)
|
-
多出来的tick
|