Re: Date Time help



Agrapha <agrapha@xxxxxxxxx> wrote:

> I need a line graph with a moving window of time on the x-axis.

And who's going to cut one day's worth of data out of the (supposedly
larger data stream? IOW, who will be moving the window?

> So my difficulty is the 00 hour which moves thru the day depending on
> the hour we look at the data.

Not really. Your key difficulty is that your data file contains
information which you're not telling gnuplot to use: the date. You
need to present it with data that actually makes a difference between
15:00 today and 15:00 yesterday --- IOW, you need the date.

Read 'help time/date' and the sections it points you to, again, then
craft a timefmt setting that will read both the time and the date from
your file. You may have to adjust the file format a bit (get rid of
those pesky AM/PM hours), but other than that, it should just work.
Then

set format x "%H"

will put just the hour on the ticks, and yes, that will jump back from
23 to 0 at midnight.

> I have read the time/date help section but because of the moving
> window of hours I didn't see a clear way to plot the data.

I think you're failing to see the forest because you're staring too at
a single tree too much. The trick is that you need to get more
information than just the hour into gnuplot.

The only other option I see would be to forge the xtics manually,
ignoring the hour data in the file:

set xtics ('15' 0, '16' 1, ..., '15' 24)
plot 'data' using 5


--
Hans-Bernhard Broeker (broeker@xxxxxxxxxxxxxxxxxxxxx)
Even if all the snow were burnt, ashes would remain.
.



Relevant Pages

  • Re: [kde] Kuickshow in KDE 4?
    ... I am not sure if kuickshow heeds the EXIF ... rotation data, but if it does not, that would be a great addition for the ... moving the dragging mouse cursor outside of the window will change it's ... of the window while moving around the visible part: ...
    (KDE)
  • Re: Pls Help System freeze
    ... > Now it happened a few times already that the screen froze in KDE when ... > the only thing which is in common that it happened when moving a window. ... Also when you ssh in, investigate the system using tools such as ps, df, ...
    (alt.os.linux.suse)
  • Re: CPU usage is high on Sun Ultra 2 while running CDE and Sol9.
    ... > The following occurs while moving a simple xterm window about on CDE. ... I enabled the 'show contents during move' option in the CDE ... > the moving about of the pixels as opposed to the CPU. ...
    (comp.unix.solaris)
  • Re: Windows EX
    ... "Enter", then use your arrows keys to move the window, hit ... "Enter" or click the mouse to stop the arrow keys from moving it. ...
    (microsoft.public.windows.mediacenter)
  • Re: TWAPI strangeness
    ... Goal is to run Gnuplot commands from Tcl (eventually with the ... # Send a text string to existing gnuplot window ... I don't recall it working from Scilab at all *last night*;/ ...
    (comp.lang.tcl)