Hello,
I'm sorry to interrupt the 4.0 release preparations, but this minor bug
may be easy to fix in time for the release.
If one gives the following commands in gnuplot (version 3.8k.3):
set xdata time
set timefmt x "%d %b %Y"
set xtics border mirror norotate "01 Jan 1999",3.1557e+07
set xra ["01 Oct 1998":"01 May 2004"]
p x
one gets a (trivial) graph, with labels on the horizontal axis
starting at 01/01/1999.
However, after saving this and then loading the resulting file
into a freshly started gnuplot, the date axis labels starts
at 01/01/2000.
Furthermore, the labels are all simply 'g' rather than numerical
dates.
The causes seem to be that, when saving:
- gnuplot puts the "set xtics ...." line before the "set timefmt ..."
line, so when reading, it doesn't yet know how to interpret the
date appearing in the "set xtics ...." line.
- gnuplot puts the "set format x ...." line after the "set xdata time"
line, which apparently overrides the label format (implicitly?) set
by the latter.
Changing the order in which the lines are saved presumably would solve
this bug, but I don't know whether that could introduce any new problems.
Best regards,
Pieter-Tjerk
|