;************************************************* ; font_3.ncl ; ; Concepts illustrated: ; - Increasing the font size of tickmark labels in a map plot ; - Setting the longitude spacing for map tickmarks ; ;************************************************ 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("ps","font") ; open a ps file gsn_define_colormap(wks,"wgne15") res = True ; plot mods desired res@cnFillOn = True ; turn on color ;---This resource not needed in V6.1.0 res@gsnSpreadColors = True ; use full colormap res@lbOrientation = "Vertical" ; vertical label bar plot = gsn_csm_contour_map_ce(wks,data,res) ; create plot ; now change the size of the tickmark labels res@tmXBLabelFontHeightF = 0.02 ; resize tick labels res@tmYLLabelFontHeightF = 0.02 ; change label spacing to avoid overlap res@lbLabelStride = 2 ; every other label res@tmXBTickSpacingF = 60. ; every 60 degrees plot = gsn_csm_contour_map_ce(wks,data,res) ; create plot end