;************************************************* ; NCL Graphics: text_2.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 NDC coordinates. ;************************************************ txres = True ; text mods desired txres@txFontHeightF = 0.03 ; font smaller. default big ; page coordinates are normalized. go from 0->1 not 0->8" etc. gsn_text_ndc(wks,"Text in Page(NDC) Coordinates",0.3,0.1,txres) frame(wks) ; now advance frame end