;************************************************* ; NCL Graphics: text_1.ncl ;************************************************ 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("uv300.nc","r") u = a->U(0,:,8) ;************************************************ ; create plot ;************************************************ wks = gsn_open_wks("ps","text") res = True ; plot mods desired res@gsnFrame = False ; don't advance frame yet plot=gsn_csm_xy(wks,u&lat,u,res) ; Draw xy plot. ;************************************************ ; Draw text on plot using plot coordinates. ;************************************************ txres = True ; text mods desired txres@txFontHeightF = 0.03 ; font smaller. default big gsn_text(wks,plot,"Text in Plot Coordinates",10,0.0,txres) frame(wks) ; now advance frame end