[ncl-talk] irregular (explicit) but equally-spaced axis
Adam Phillips
asphilli at ucar.edu
Wed May 30 09:32:35 MDT 2018
Hi Yanting,
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:
http://www.ncl.ucar.edu/Applications/axes.shtml
Hope that helps. If you have any further questions please respond to
ncl-talk.
Adam
On Mon, May 28, 2018 at 12:19 PM, Yan-Ting Chen <aquarius83523 at gmail.com>
wrote:
> Hi all,
>
> 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./) with equal space. That is, interval between 0 and 2 is
> identical to interval between 30 and 100.
>
> 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?
>
>
> Sincerely,
> Yanting
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
--
Adam Phillips
Associate Scientist, Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/ 303-497-1726
<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180530/1d78f6af/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: axes.000001.png
Type: image/png
Size: 57474 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180530/1d78f6af/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: axes.ncl
Type: text/x-ncl
Size: 1713 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180530/1d78f6af/attachment.bin>
More information about the ncl-talk
mailing list