begin ; ; Read T and assign a level attribute. ; Notice the level values are irregularly-spaced. ; T = asciiread("$NCARG_ROOT/lib/ncarg/data/asc/cn03f.asc",(/10,73/),"float") T!0 = "lev" T&lev = (/1000.,850.,700.,500.,400.,300.,250.,200.,150.,100./) wks = gsn_open_wks("png","irregular1h") ; ; To force the values on the Y axis to be linearly spaced, set ; res@gsnYAxisIrregular2Linear to True. ; res = True res@gsnMaximize = True ; Maximize plot in frame. res@tiMainString = "Various levels of stipple fill" res@gsnYAxisIrregular2Linear = True res@cnFillOn = True ; Turn on contour fill. res@cnMonoFillColor = True ; Use single color for fill. res@cnFillPattern = 17 ; Use stipple fill. res@cnMonoFillScale = False ; Allow various fill scales. res@cnFillScales = fspan(0.5,2.0,12) plot = gsn_csm_contour(wks,T,res) end