|
From: Ethan A M. <merritt@u.washington.edu> - 2008-09-13 16:49:19
|
On Saturday 13 September 2008, Shigeharu TAKENO wrote:
> shige 09/13 2008
> ----------------
>
> I have one proposal for timelevel but don't have a patch now.
> Gnuplot uses 'timelevel' for Time/date data. For example,
>
> set xdata time
> set timefmt "%Y %m %d"
> set format x "%y/%m/%d"
> set xtics "2008 01 01", 60*60*24*30 # 30 days interval
>
> makes tics
>
> 2008/01/01, 2008/02/01, 2008/03/01, ...
>
> which have "1 month" intervals, not "30 days". This seems to be
> done by the timelevel value for the axis. Usually "1 month"
> intervals may be more useful than "30 days" ones.
>
> However, since the timelevel is always decided automatically
> (in quantize_time_tics() or setup_tics() ?) from the interval
> value, we can not make tics having "30 days" intervals easily
> (we can do it only by the manual tics setting ("2008 01 01",
> "2008 01 31", "2008 03 01", ...)).
I think that is no longer true.
See this note in the ChangeLogs for both 4.2 and 4.3:
2008-05-08 Thomas Sefzick <th...@us...>
* src/axis.c (setup_tics): If the user specified an explicit
tic interval on a timefmt axis, do not change this by calling
quantize_time_tics().
Bug #1908019
This change has been in the CVS version for 6 months, and will be
included in the upcoming 4.2.4 release
Ethan
--
Ethan A Merritt
Biomolecular Structure Center
University of Washington, Seattle 98195-7742
|