|
From: Shigeharu T. <sh...@ie...> - 2008-09-16 12:04:58
|
shige 09/16 2008
----------------
Ethan Merritt wrote:
| > Perhaps you can accomplish what you want by using some combination
| > of strptime() strftime() and the new iteration function for xtics
| > inspired by your earlier suggestion?
|
| This approach seems to work, although it conflicts with the setting
| "set xdata time". Here is my test case:
|
| TFORMAT = "%d-%m-%Y"
| START = strptime(TFORMAT,"01-01-2001")
| END = strptime(TFORMAT,"01-01-2003")
| DAYS30 = 30*24*60*60
|
| unset xdata time
| set xrange [START:END]
|
| set for [date=START:END:DAYS30] xtics (strftime(TFORMAT,date) date)
|
| set xtics rotate by -90
| plot x
Yes.
While we can not do it for 30 days interval simply, we can do the
other days (ex. 10, 15, 20, 25 days) without such trick. I think
the simple way is to enable to modify the automatic timelevel
setting.
| The remaining problem is that the command "set xdata time" is applied
| to both input and output. In order to use the above approach to control
| output, you must do "unset xdata time". But then you must also
| explicitly process the input data, rather than using the built-in
| gnuplot timedata system. So far as I know that work fine, but it
| is an extra requirement.
|
| I asked on the newsgroup a few weeks ago if anyone was aware of missing
| features that would get in the way of doing the all time processing
| explicitly using strptime() and strftime(). Hans-Bernhard pointed out
| that it would be difficult to do the quantization of tick increments if you
| did this, which is true. It is interesting that you are now offering a
| case where quantization of tick increments is exactly what you are trying
| to avoid. So it seems that the built-in and explicit time format
| handling paths may both be needed.
|
| Nevertheless we may want to provide some way of *not* applying
| the "xdata time" flag to labeling the ticks. Suggestions?
I think that to enable to modify the timelevel is easier than to
consider what you say. In the way to handle the timelevel, we may
continue to use the timedata processing system.
+========================================================+
Shigeharu TAKENO NIigata Institute of Technology
kashiwazaki,Niigata 945-1195 JAPAN
sh...@ie... TEL(&FAX): +81-257-22-8161
+========================================================+
|