<div dir="ltr"><span style="font-size:small;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Hi Yanting,</span><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">If you are using gsn_csm_xy (and not gsn_csm_contour), you can get the axes you want by setting xyYIrregularPoints and xyYStyle="Irregular". See the documentation here:</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/xy.shtml#xyYIrregularPoints">http://www.ncl.ucar.edu/Document/Graphics/Resources/xy.shtml#xyYIrregularPoints</a><br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">I've attached a (new) script showing how to use them, along with the resulting graphic. </div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">If you have further questions please reply to ncl-talk.</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">Adam</div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 31, 2018 at 10:51 AM, Yan-Ting Chen <span dir="ltr"><<a href="mailto:aquarius83523@gmail.com" target="_blank">aquarius83523@gmail.com</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">

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Hi Adam and NCL users,</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Thank you Adam for reply but it doesn't work for me. In your example plot type is </span><span style="font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><font color="#0000ff">gsn_csm_contour</font></span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">, however, I am doing it with </span><span style="font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><font color="#0000ff">gsn_csm_xy</font></span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"> for </span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">scatter plot. Thus, I can't directly attach the data to an irregularly-spaced axis. With similar resource I get a warning message</span><br><div><font color="#000000">warning: gsnYAxisIrregular2Linear is not a valid resource in ******<br></font></div><div><font color="#000000">and a</font><span style="color:rgb(255,0,0)"> linear y-axis </span><font color="#000000">with explicit label. The levels are not equally-spaced.</font></div><div><br></div><div>The following is how I set related resource:</div><div><div><br></div><div>  ypts = (/1.,3.,10.,30.,100./)</div></div><div><br></div><div><div>  res = True</div></div><div>  res@xyMarkLineModes   = "Markers"<br></div><div>  res@xyMarkers             = 16            <br></div><div>  res@xyMarkerSizeF     = 0.005      </div><div>  res@trYMinF = 0.1</div><div><div>  res@trYMaxF = 50.</div></div><div><br></div><div>  res@tmYLMode          = "Explicit"   <br></div><div>  res@tmYLValues        = ypts             </div><div>  res@tmYLLabels        = ypts  </div><div>  res@gsnYAxisIrregular2Linear = True</div><div>  (gsnYAxisIrregular2Linear is not valid.)</div><div><br></div><div><br></div><div>Sincerely,</div><div><br></div><div>Yanting</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 30, 2018 at 11:32 PM, Adam Phillips <span dir="ltr"><<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.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"><span style="font-size:small;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Hi Yanting,</span><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">I believe the behavior that you are after is NCL's default behavior when it comes to axes. I've modified Applications example axes_1.ncl, and attached the script and resulting plot here. As you can see, the distance between 0, 2, 10, 30 and 100 is equal. See other examples on the axes page here:</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><a href="http://www.ncl.ucar.edu/Applications/axes.shtml" target="_blank">http://www.ncl.ucar.edu/Applic<wbr>ations/axes.shtml</a><br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">Hope that helps. If you have any further questions please respond to ncl-talk.</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">Adam</div><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_9145733627838244339h5">On Mon, May 28, 2018 at 12:19 PM, Yan-Ting Chen <span dir="ltr"><<a href="mailto:aquarius83523@gmail.com" target="_blank">aquarius83523@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_9145733627838244339h5"><div dir="ltr">Hi all,<div><br></div><div>I want to draw 2 variables in a single scattering plot with irregular Y-axis. I know there is gsnYAxisIrregular2Log etc. in hand. The problem is, I want a hybrid linear-logarithmic vertical scale like ypts = (/0., 2., 10., 30., 100./) <font color="#ff0000">with equal space</font>. That is, interval between 0 and 2 is identical to interval between 30 and 100. </div><div><br></div><div>I tried example xy_30.ncl with specified ypts above and get a chart with somewhat distorted Y axis. I guess it's logarithmic but this is not what I want. (see attachment.) Is there any way to get an equally-spaced irregular (say, explicit level) axis?</div><div><br></div><div><br></div><div>Sincerely, </div><div>Yanting</div></div>
<br></div></div>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><span class="m_9145733627838244339HOEnZb"><font color="#888888"><br><br clear="all"><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_9145733627838244339m_4002389717503906270gmail_signature" data-smartmail="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/asphill<wbr>i/</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>
</font></span></font></span></div>
</blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="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>