[ncl-talk] Irregular X axis.

Geeta Geeta geetag54 at yahoo.com
Fri Jul 31 02:35:32 MDT 2020


Thanks Mr Adam  for your insights. 
I will go ahead with present resource. and the log scale. Because with qsort, the range of X  will remain and there will be custering of values in one partcular range. 

thanks


Geeta.








 On Friday, 31 July, 2020, 02:59:07 am IST, Adam Phillips <asphilli at ucar.edu> wrote:





 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


More information about the ncl-talk mailing list