load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" begin wks = gsn_open_wks("pdf","test9yRlabel") gsn_define_colormap(wks,"gui_default") ; choose colormap plot1 = new(1, graphic) YL = (/280,300,320,340,360,380,400,420,440/) X = (/10,15,20,25,30,35,40,45,50/) res = True res@tmYROn = True ; turn on the YR tickmarks res@tmYRLabelsOn = True ; turn the YR labels on res@tmYUseLeft = False res@tmYRMode = "Explicit" ; explicitly set Y-axis labels res@tmYRValues = (/640.00,2200.00,4200.00,6700.00,8000.00,12500.00,14100.00/) res@tmYRLabels = (/"640","2200", "4200", "6700", "8000", "12500", "14100"/) plot1 = gsn_csm_xy(wks,X,YL,res) getvalues plot1 ; retrieve some of the plot resources "tmYLLabels" : tmYLLabels ; values used by NCL at major tick marks end getvalues getvalues plot1 ; retrieve some of the plot resources "tmYRLabels" : tmYRLabels ; values used by NCL at major tick marks end getvalues printVarSummary(tmYLLabels) print(tmYLLabels) printVarSummary(tmYRLabels) print(tmYRLabels) frame(wks) delete(res) end