<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hello all,</p>
<p><br>
</p>
<p>Few weeks back I posted to ncl-talk that I wasn't able to get <font size="3">right side</font><font size="3"> Yaxis labels </font><font size="3">in some of the </font><font size="3">plots that I am trying to do. </font></p>
<p><span style="font-size: medium;"><br>
</span></p>
<p><span style="font-size: medium;">So I tested right </span><span style="font-size: 12pt;">Yaxis labels function (</span><span style="font-size: 12pt;">tmYRLabels)</span><span style="font-size: 12pt;"> </span><font size="3">with a simple sample script. I
am attaching my sample script, figure and log file here</font><font size="3">.</font></p>
<p><br>
</p>
<p>When I printed the YRLabels variable summary it shows the explicit labels that I provided (look at the log file) but for some reason they are not plotted in the figure. Can someone please let me know if I am missing anything in my sample script. Appreciate
any kind of help. </p>
<p><br>
</p>
<p>I am also pasting my code below for a quick glance.</p>
<p><br>
</p>
<p>Thanks,</p>
<p>Pradeepa. </p>
<p><br>
</p>
<p><b><u>Code:</u></b></p>
<p><br>
</p>
<p>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</p>
<p>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"</p>
<p><br>
</p>
<p>begin</p>
<p><br>
</p>
<p> wks = gsn_open_wks("pdf","test9yRlabel")</p>
<p> gsn_define_colormap(wks,"gui_default") ; choose colormap</p>
<p> plot1 = new(1, graphic)</p>
<p><br>
</p>
<p> YL = (/280,300,320,340,360,380,400,420,440/)</p>
<p> X = (/10,15,20,25,30,35,40,45,50/)</p>
<p><br>
</p>
<p> res = True </p>
<p> res@tmYROn = True ; turn on the YR tickmarks</p>
<p> res@tmYRLabelsOn = True ; turn the YR labels on</p>
<p> res@tmYUseLeft = False</p>
<p> res@tmYRMode = "Explicit" ; explicitly set Y-axis labels</p>
<p> res@tmYRValues = (/640.00,2200.00,4200.00,6700.00,8000.00,12500.00,14100.00/)</p>
<p> res@tmYRLabels = (/"640","2200", "4200", "6700", "8000", "12500", "14100"/) </p>
<p><br>
</p>
<p> plot1 = gsn_csm_xy(wks,X,YL,res)</p>
<p><br>
</p>
<p> getvalues plot1 ; retrieve some of the plot resources</p>
<p> "tmYLLabels" : tmYLLabels ; values used by NCL at major tick marks</p>
<p> end getvalues</p>
<p> getvalues plot1 ; retrieve some of the plot resources</p>
<p> "tmYRLabels" : tmYRLabels ; values used by NCL at major tick marks</p>
<p> end getvalues </p>
<p> </p>
<p> printVarSummary(tmYLLabels)</p>
<p> print(tmYLLabels)</p>
<p> printVarSummary(tmYRLabels)</p>
<p> print(tmYRLabels)</p>
<p><br>
</p>
<p>frame(wks)</p>
<p>delete(res)</p>
<p><br>
</p>
<p>end</p>
</div>
</body>
</html>