[ncl-talk] x-axis values space
Mauro Morichetti
s1073755 at pm.univpm.it
Thu Sep 30 08:15:03 MDT 2021
Hi Adam,
thanks for you exhaustive answer.
> I have attached the modified script and the resulting plot. Please check what I did to make sure that the values are plotted where they should be along the x-axis. You might be able to form a more elegant solution than what I did, but if so hopefully you can learn from what I did.
I understood what you did, and of course, I learnt something new.
Thanks again
Mauro
---------
Ph.D. Mauro Morichetti
Department of Industrial Engineering and Mathematical Science
Marche Polytechnic University, Ancona, Italy
m.morichetti at pm.univpm.it
> On 30Sep, 2021, at 01:02, Adam Phillips <asphilli at ucar.edu> wrote:
>
> Hi Mauro,
> This took a bit to figure out as there was not anything in your script that should have been causing problems with how the data was being displayed. Through trial and error, I think the problem is that your x-axis coordinates have a very high number of significant digits (and possibly that you have 13,000 of them). I don't see why the number of significant digits or the number of data values would cause problems, but it is. The solution was to decrease the number of significant digits down, changing the values from (say) 998387.0105555556 to 4.0105555556. Once I did that (and modified the resources to match the new x-axis coordinates) the plot looks correct to me.
>
> The original script was returning a couple of error messages that indicated that something was amiss:
> warning:AutoComputeMajorTickMarks: min and max are so close together or so far apart that arithmetic error may cause problems, proceed at own risk
> warning:ComputeMinorTickMarks: The distance between major tickmarks is so close or so far apart that arithmetic error may cause problems determining the accurate locations of minor tickmarks
>
> I have attached the modified script and the resulting plot. Please check what I did to make sure that the values are plotted where they should be along the x-axis. You might be able to form a more elegant solution than what I did, but if so hopefully you can learn from what I did.
> Adam
>
> On Tue, Sep 28, 2021 at 8:31 AM Mauro Morichetti via ncl-talk <ncl-talk at mailman.ucar.edu <mailto:ncl-talk at mailman.ucar.edu>> wrote:
> Hi everyone,
>
> the reviewer of a paper we submitted ask us to change the Figure 4 (fig4_old.png attached) using the same time interval for the plot a) and the plot b) (8:30 - 11:00).
>
> I am quite close to have the same picture using NCL, but I can not understand why the values of the plot b) seem to follow the hour of the time series resulting in a plot with white space between the plotted values (fig4.png attached).
>
> The script I did and the time series used are attached (respectively asciitime.ncl, MER:dat and Plume_height_ECV.dat).
>
> Could someone hale me with this please?
>
> Regards
>
> Mauro
>
> ---------
>
> Ph.D. Mauro Morichetti
> Department of Industrial Engineering and Mathematical Science
> Marche Polytechnic University, Ancona, Italy
> m.morichetti at pm.univpm.it <mailto:m.morichetti at pm.univpm.it>
> <fig4_old.png>
> <fig4.png>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at mailman.ucar.edu <mailto:ncl-talk at mailman.ucar.edu>
> List instructions, subscriber options, unsubscribe:
> https://mailman.ucar.edu/mailman/listinfo/ncl-talk <https://mailman.ucar.edu/mailman/listinfo/ncl-talk>
>
> --
> Adam Phillips
> Associate Scientist, Climate and Global Dynamics Laboratory, NCAR
> www.cgd.ucar.edu/staff/asphilli/ <http://www.cgd.ucar.edu/staff/asphilli/> 303-497-1726
>
> <http://www.cgd.ucar.edu/staff/asphilli><asciitime.2.ncl><fig4.2.png>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210930/9ff37e58/attachment-0001.html>
More information about the ncl-talk
mailing list