; ; Basic graphics exercise 3. ; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" begin y = sin(0.0628*ispan(0,100,1)) ; Generate a curve with 101 points. wks = gsn_open_wks("ps","basic_ex03") ; Open a PS file. res = True ; Some plot options desired. res@gsnMaximize = True ; Maximize plot in frame. plot = gsn_csm_y(wks,y,res) ; Call the gsn_csm function for drawing ; the curve. No plot options are set. end