[ncl-talk] Irregular X axis.
Adam Phillips
asphilli at ucar.edu
Thu Jul 30 15:28:38 MDT 2020
Hi Geeta,
Thank you for sending along an easy to run script for all to run. Your
x-axis values as supplied by your Vrf array are not monotonically
increasing; I wonder if that is the cause of the problem here. Based on
some quick testing and the spacing of your data, I think your best course
of action is to actually choose a log axis. Set res at trXAxisType =
"LogAxis", and set res at trXMinF = 100. I have attached the resulting image.
If you do not want to use a log axis, then I recommend sorting your data by
the Vcf array, utilizing the qsort procedure. (You will then also have to
use the indexes of the sorted Vcf array to sort your Crf and Srf arrays.)
Hope that helps!
Adam
On Thu, Jul 30, 2020 at 12:07 AM Geeta Geeta via ncl-talk <
ncl-talk at mailman.ucar.edu> wrote:
> Hi.
> I have X axis values that range from
> (0) 1.086086e+08 (maximum)
> (0) 4912 (minimum).
>
> there are only 2-3 values of X axis which are as large as the maximum
> value (Column 3 of the dataset). Y axis is colum 2. because of this large
> range in X axis, my plot is getting clustered towards the left.
>
> I tried with res at gsnXAxisIrregular2Linear = True
> but I get a warning message
>
> warning:gsnXAxisIrregular2Linear is not a valid resource in scatter_xy at
> this time
> warning:gsnXAxisIrregular2Linear is not a valid resource in scatter_xy at
> this time
>
>
> I also tried with resXBMode = "explicit and Manual but that does not help.
>
>
> can someone help me in this??
>
> thanks
>
> Geeta._______________________________________________
> ncl-talk mailing list
> ncl-talk at mailman.ucar.edu
> List instructions, subscriber options, unsubscribe:
> https://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: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200730/75385f3e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scatter.png
Type: image/png
Size: 74003 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200730/75385f3e/attachment.png>
More information about the ncl-talk
mailing list