Re: [ploticus] Re: Question on using datetime format
- Hi Chunling,
I understand now what you're trying to do and agree it would be nice if
ploticus could do this, but spent a few minutes trying various things and
can't get any good results.
With datetime scaling it seems to be require at least 1 second between
axis min and max. Further, the axis routine can't operate at less than
If I were doing this I would probably write a small external filter
program (C, perl, whatever) to process the data before it reaches ploticus
(it could be invoked via proc getdata 'command'). This filter would check
for a change in the seconds field... after that occurs it would add
1000000 to the microseconds field. This would handle all boundary issues.
It would then output the datetime and the massaged microseconds field.
Then pl could plot using the microseconds field (only) as a plain numeric.
I would then identify the date and time in the plot title.
On Tue, 29 May 2007, Chunling Ma wrote:
> I see your point. But right now, my problem is that I collected data
> for a few seconds (at most 10 seconds actually) every 30 minutes for one
> week. So there were some data points that crossed boundaries of minutes,
> hours, even days. That's why I used the datetime format. Is there a way
> that ploticus can handle this? I used to use gnuplot, and it was able to
> plot this case. But I was thinking of converting to ploticus from now on
> since the pictures it generate look nicer. If it can't handle this case,
> I guess I would have to stay with gnuplot. Thank you very much!