load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" begin years = ispan(1850,1870,1) nyears = dimsizes(years) arr = random_uniform(-4.,4.,nyears) wks = gsn_open_wks("x11","tm") res = True res@gsnMaximize = True res@vpWidthF = 0.8 ; make the plot wider than it is high res@vpHeightF = 0.3 res@trXMinF = min(years) res@trXMaxF = max(years) res@trYMinF = -4.5 res@trYMaxF = 4.5 plot = gsn_csm_xy(wks,years,arr,res) ; X axis tickmark labels start at 1950, not 1949 res@tmXBMode = "Manual" res@tmXBTickStartF = res@trXMinF ; Force tickmark labelling to start at first value plot = gsn_csm_xy(wks,years,arr,res) end