Re: X-axis has wrong origin

hchiPer <[email protected]> Tue, 11 Jul 2023 08:21:20 +0200
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <[email protected]>
Hi,

Your PDF shows data that don't exist in your datafile.
Anyway, regarding the x scale, after
     set timefmt	"%d/%m/%y"
you could add
     set xrange ["01/01/23":*]
to avoid gnuplot using some "rounded" limits for x axis.
You did something similar for yrange at line 96.

Tested with wxt terminal, gnuplot 5.4.6.

Laurent

Le 11/07/23 à 00:43, Dave Horsfall a écrit :
> Gnuplot 5.4 patchlevel 8, MacBook Pro (mid-2010) on High Sierra 10.13.6.
> 
> See http://www.horsfall.org/health.pdf and note how the X-axis starts on
> 01 Dec 2022 and not 01 Jan 2023 as specified in the data file (attached).
> 
> I can "fix" it by commenting out the first line of data as demonstrated.
> 
> The command script is also attached.
> 
> Seems like a bug to me...
> 
> Thanks.
> 
> -- Dave
> 
> 
> 
> _______________________________________________
> gnuplot-info mailing list
> [email protected]
> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info


_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info