; ; Basic graphics exercise 5. ; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" begin ii = ispan(0,100,1) ; 101 points y1 = sin(0.0628*ii) ; Generate a sine curve w/101 points y2 = cos(0.0628*ii) ; Generate a cosine curve w/101 points wks = gsn_open_wks("x11","basic_ex05") ; Open an X11 window res = False ; No plot options set. plot = gsn_csm_y(wks,y1,res) ; Will be drawn in first frame plot = gsn_csm_y(wks,y2,res) ; Will be drawn in second frame end