; ; The max1*ncl series of scripts show how setting gsnMaximize to ; True affects your plot, along with setting view port resources that ; change the size and position of your plot in the frame. ; ; Note that gsnMaximize *will* preserve the aspect ratio of your plot. ; ; There are other scripts in this directory that set ; gsnMaximize to True, so you can also look at them as well. ; begin y = sin(0.0628*ispan(0,100,1)) ; Generate a curve with 101 points. wks = gsn_open_wks("png","max1a") ; Open png file called "max1a.png". res = True res@xyLineThicknessF = 3 ; 3x as thick res@gsnMaximize = True ; Maximize plot in frame. plot = gsn_csm_y(wks,y,res) ; Draw the plot. end