- 积分
- 7108
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-7-4
- 最后登录
- 1970-1-1
|
发表于 2016-7-26 21:22:54
|
显示全部楼层
本帖最后由 1649518749 于 2016-7-26 21:34 编辑
比如:
taus = ispan(1,5,1) ; 几个时次写几!
; get time information and strip out the day and hour
times_in_file = a->Times
dims = dimsizes(times_in_file)
times = new(dims(0),string)
do i=0,dims(0)-1
times(i) = chartostring(times_in_file(i,8:12))
end do
wks = gsn_open_wks("png","meteo2") ; open a workstation
t2_res = True
t2_res@gsnMaximize=True
t2_res@tmXBMode = "Explicit" ; 要写
t2_res@tmXBValues = taus ; 要写
t2_res@tmXBLabels = times ; taus和times有区别
t2_res@tmXTOn = False ; turn off the top tick marks
t2_res@xyLineThicknesses = 2 ; increase line thickness
t2_res@xyLineColor = "blue" ; set line color
t2_res@tmXBLabelStride = 3 ; 刻度间隔。
|
|