<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>Thank you Adam for the suggestion. Appreciate it.</p>
<div><br>
</div>
Yes, figured out the issue yesterday and already&nbsp;made that change. Everything works fine now.<br>
<br>
Regards,<br>
Pradeepa.<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Adam Phillips &lt;asphilli@ucar.edu&gt;<br>
<b>Sent:</b> Tuesday, March 15, 2016 3:16 PM<br>
<b>To:</b> Vennam, Lakshmi Pradeepa<br>
<b>Cc:</b> ncl-talk@ucar.edu<br>
<b>Subject:</b> Re: [ncl-talk] Unable to get right Y-axis labels in the plot</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">Hi&nbsp;<span style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">Pradeepa,</span>
<div><font color="#000000" face="Calibri, Arial, Helvetica, sans-serif"><span style="font-size:16px">Your tmYRValues need to fall within the tmYL range for them to show up. For instance, I bet if you change this:</span></font></div>
<div><span style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">res@tmYRValues = (/640.00,2200.00,4200.00,6700.</span><span style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">00,8000.00,12500.00,14100.00/)</span><font color="#000000" face="Calibri, Arial, Helvetica, sans-serif"><span style="font-size:16px"><br>
</span></font></div>
<div><span style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">to this:</span></div>
<div><span style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">res@tmYRValues = fspan(270,420,7)</span></div>
<div><span style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</span></div>
<div><span style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">the labels will show up. Thus, I think you will need to map your desired right hand side Y-axis values up to your values on the left hand side Y-axis.</span></div>
<div><span style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</span></div>
<div><span style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">Hope that helps. If not, or if you have any further questions, please respond to the ncl-talk email list and not to me personally.</span></div>
<div><span style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">Adam</span></div>
<div><font color="#000000" face="Calibri, Arial, Helvetica, sans-serif"><span style="font-size:16px"><br>
</span></font></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sun, Mar 13, 2016 at 5:54 PM, Vennam, Lakshmi Pradeepa
<span dir="ltr">&lt;<a href="mailto:lakshmi@live.unc.edu" target="_blank">lakshmi@live.unc.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div 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&nbsp;<font size="3">right side</font><font size="3"> Yaxis&nbsp;labels&nbsp;</font><font size="3">in some of the&nbsp;</font><font size="3">plots that I am trying to do.&nbsp;</font></p>
<p><span style="font-size:medium"><br>
</span></p>
<p><span style="font-size:medium">So I tested right&nbsp;</span><span style="font-size:12pt">Yaxis labels function (</span><span style="font-size:12pt">tmYRLabels)</span><span style="font-size:12pt">&nbsp;</span><font size="3">with a simple sample script.&nbsp; 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&nbsp;YRLabels variable summary it&nbsp;shows the explicit&nbsp;labels that I provided&nbsp;(look at the&nbsp;log file) but for some reason they are not plotted in the figure. Can someone please&nbsp;let me know if I am missing anything in my sample script.&nbsp;Appreciate
 any kind of help.&nbsp;</p>
<p><br>
</p>
<p>I am&nbsp;also pasting my code below for a quick glance.</p>
<p><br>
</p>
<p>Thanks,</p>
<p>Pradeepa.&nbsp;</p>
<p><br>
</p>
<p><b><u>Code:</u></b></p>
<p><br>
</p>
<p>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;</p>
<p>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;</p>
<p><br>
</p>
<p>begin</p>
<p><br>
</p>
<p>&nbsp;wks = gsn_open_wks(&quot;pdf&quot;,&quot;test9yRlabel&quot;)</p>
<p>&nbsp;gsn_define_colormap(wks,&quot;gui_default&quot;) &nbsp; &nbsp; &nbsp; &nbsp;; choose colormap</p>
<p>&nbsp;plot1 = new(1, graphic)</p>
<p><br>
</p>
<p>&nbsp;YL = (/280,300,320,340,360,380,400,420,440/)</p>
<p>&nbsp;X = (/10,15,20,25,30,35,40,45,50/)</p>
<p><br>
</p>
<p>&nbsp;res = True&nbsp;</p>
<p>&nbsp;res@tmYROn &nbsp; &nbsp; = True &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; turn on the YR tickmarks</p>
<p>&nbsp;res@tmYRLabelsOn = True &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; turn the YR labels on</p>
<p>&nbsp;res@tmYUseLeft = False</p>
<p>&nbsp;res@tmYRMode = &quot;Explicit&quot; &nbsp;; explicitly set Y-axis labels</p>
<p>&nbsp;res@tmYRValues = (/640.00,2200.00,4200.00,6700.00,8000.00,12500.00,14100.00/)</p>
<p>&nbsp;res@tmYRLabels = (/&quot;640&quot;,&quot;2200&quot;, &quot;4200&quot;, &quot;6700&quot;, &quot;8000&quot;, &quot;12500&quot;, &quot;14100&quot;/)&nbsp;</p>
<p><br>
</p>
<p>&nbsp;plot1 = gsn_csm_xy(wks,X,YL,res)</p>
<p><br>
</p>
<p>&nbsp; getvalues plot1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; retrieve some of the plot resources</p>
<p>&nbsp; &nbsp; &nbsp;&quot;tmYLLabels&quot; &nbsp;: tmYLLabels &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; values used by NCL at major tick marks</p>
<p>&nbsp; end getvalues</p>
<p>&nbsp; &nbsp;getvalues plot1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; retrieve some of the plot resources</p>
<p>&nbsp; &nbsp; &nbsp;&quot;tmYRLabels&quot; &nbsp;: tmYRLabels &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; values used by NCL at major tick marks</p>
<p>&nbsp; end getvalues&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;printVarSummary(tmYLLabels)</p>
<p>&nbsp;print(tmYLLabels)</p>
<p>&nbsp;printVarSummary(tmYRLabels)</p>
<p>&nbsp;print(tmYRLabels)</p>
<p><br>
</p>
<p>frame(wks)</p>
<p>delete(res)</p>
<p><br>
</p>
<p>end</p>
</div>
</div>
<br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div>
<div><span><font color="#888888">Adam Phillips <br>
</font></span></div>
<span><font color="#888888">Associate Scientist,&nbsp; </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br>
</font></span></div>
</div>
<div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>&nbsp;&nbsp;
</font></span><span><font color="#888888">303-497-1726 </font></span></div>
<span><font color="#888888"></font></span>
<div>
<div><span><font color="#888888"><br>
</font></span>
<div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>