load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" begin arr = random_uniform(-4.,4.,56) wks = gsn_open_wks("ps","tm") gsn_define_colormap(wks,"gsdtol") res = True ; The following vp resources set the boundaries of the xy plot ; in ndc grid space (0.->1.) res@vpWidthF = 0.8 ; set width of plot res@vpHeightF = 0.3 ; set height of plot res@vpXF = 0.1 ; set left hand side start point of plot ; as vpWidthF = .8, plot will occupy .1->.9 in NDC coords. res@vpYF = 0.8 ; set top start point of plot ; as vpHeightF = .3, plot will occupy .5->.8 in NDC coords. res@trYMinF = -4.5 ; set minimum Y-axis value res@trYMaxF = 4.5 ; set maximum Y-axis value res@trXMinF = 1949 ; set minimum X-axis value res@trXMaxF = 2006 ; set maximum X-axis value plot = gsn_csm_xy(wks,ispan(1950,2005,1),arr,res) end