;************************************************* ; font_5.ncl ; ; Concepts illustrated: ; - Increasing the font size of the main title ; - Setting color maps using the new standard ; ;************************************************ ; ; These files are loaded by default in NCL V6.2.0 and newer ; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" ; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" ;************************************************ begin ;************************************************ ; read in netCDF file ;************************************************ a = addfile("atmos.nc","r") data = a->VT(0,5,:,:) ;************************************************ ; create default plot ;************************************************ wks = gsn_open_wks("png","font") ; send graphics to PNG file res = True ; plot mods desired res@cnFillOn = True ; turn on color res@cnFillPalette = "wgne15" ; set color map res@lbOrientation = "Vertical" ; vertical label bar res@tiMainString = "Enlarging your TITLE" ; title plot = gsn_csm_contour_map(wks,data,res) ; create plot ; now change the size of the title res@tiMainFontHeightF = 0.03 plot = gsn_csm_contour_map(wks,data,res) ; create plot end