[ncl-talk] x-axis values space

Adam Phillips asphilli at ucar.edu
Wed Sep 29 17:02:50 MDT 2021


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> 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
> _______________________________________________
> 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/20210929/c8c9bb27/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fig4_old.png
Type: image/png
Size: 82867 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210929/c8c9bb27/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fig4.png
Type: image/png
Size: 25772 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210929/c8c9bb27/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asciitime.2.ncl
Type: application/octet-stream
Size: 7769 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210929/c8c9bb27/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fig4.2.png
Type: image/png
Size: 115821 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210929/c8c9bb27/attachment-0002.png>


More information about the ncl-talk mailing list