<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 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 <asphilli@ucar.edu><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> </div>
</div>
<div>
<div dir="ltr">Hi <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"><<a href="mailto:lakshmi@live.unc.edu" target="_blank">lakshmi@live.unc.edu</a>></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 <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>
</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, </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>
</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>