<div dir="ltr"><div class="gmail_default" style="font-size:small">Aditya,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Please see the attached script and data file. You should be able to run this as-is.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It&#39;s a bit kludgy, because you have to first calculate the height values to get the labels on the right Y axis. You also have to use special code to put &quot;height (km)&quot; on the right Y axis, because NCL doesn&#39;t allow you to automatically label both the right and left axes (we do have a ticket for this).</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 21, 2016 at 10:59 PM, Aditya Nalam <span dir="ltr">&lt;<a href="mailto:aditya.nalam@gmail.com" target="_blank">aditya.nalam@gmail.com</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><div><div><div><div><div><div><div><div>Hi all,<br></div>The <font size="2"><span style="font-weight:normal">gsn_csm_pres_hgt function only plots 2D data to contour. <br></span></font></div><font size="2"><span style="font-weight:normal">Is there a function where we can plot 1D data on pressure and height axis?<br><br></span></font></div><font size="2"><span style="font-weight:normal">I have this variable <br>    T(lev)<br></span></font></div><font size="2"><span style="font-weight:normal">    T@units=&#39;K&#39;<br></span></font></div><font size="2"><span style="font-weight:normal">    T&amp;lev=lev<br></span></font></div><font size="2"><span style="font-weight:normal">    lev@units=&#39;hPa&#39;<br><br></span></font></div><font size="2"><span style="font-weight:normal">I have to plot an xy plot with lev in y-axis. But this axis should be similat to the one obtained from </span></font><font size="2"><span style="font-weight:normal">gsn_csm_pres_hgt, where we have pressure axis to the left and height axis to the right. T on the x-axis. <br><br></span></font></div><font size="2"><span style="font-weight:normal">Kindly help me out<br></span></font></div><font size="2"><span style="font-weight:normal">Thank you very much<span class="HOEnZb"><font color="#888888"><br></font></span></span></font><span class="HOEnZb"><font color="#888888"><div><div><div><div><div><div><div><div><div><h1><font size="2"><span style="font-weight:normal"><br></span></font></h1><div><div><br>-- <br><div>Regards<br>Adithya Nalam<br></div>
</div></div></div></div></div></div></div></div></div></div></div></font></span></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></div>