timefmt

timefmt

Post by Jan-Thomas Kühner » Fri, 07 Jun 2002 00:02:49



Hello,
I have a question to formatting of values. I have a datafile with values
for a measurement about 24 hours (01:24  xxx). When I use the example
for timefmt from help I become xlabels from 00:00 to 00:00.
What can I do for xlabels like 00:00 to 24:00?
Thanx for help,
TThomas
 
 
 

timefmt

Post by Hans-Bernhard Broeke » Fri, 07 Jun 2002 01:06:57



> Hello,
> I have a question to formatting of values. I have a datafile with values
> for a measurement about 24 hours (01:24  xxx). When I use the example
> for timefmt from help I become xlabels from 00:00 to 00:00.

Of course you do.  That timefmt is just an *example*, and it doesn't
match your file format.  You'll have to adapt it.  For your data, it'd
be

        set timefmt '%H:%M'
        set format x '%H:%M'
        set xdata time
        plot 'datafile' using 1:2

--

Even if all the snow were burnt, ashes would remain.

 
 
 

timefmt

Post by Jan-Thomas Kühner » Fri, 07 Jun 2002 14:42:38


Hans-Bernhard Broeker schrieb:
Quote:

> For your data, it'd be

>         set timefmt '%H:%M'
>         set format x '%H:%M'
>         set xdata time
>         plot 'datafile' using 1:2

Thanks for your help, but it doesn't work. Unfortunaly I forgot to say
that the measurement time is exactly 24 hours. So I become with your
solution the same output as before. I think I should the time input
change to integer input.
Thomas
 
 
 

1. Fractional seconds in timefmt

I am using gnuplot for MS-Windows 32 bit version 3.7, patchlevel 1,
(last modified Fri Oct 22 18:00:00 BST 1999).

I take data (on a particle accelerator) at a rate of about 5 Hz, so
it includes fractional seconds.  Typical format is:

04/30/2003 12:06:38.46   33.362   33.411   34.637   34.711   33.313
04/30/2003 12:06:38.66   33.502   33.575   34.790   34.869   33.453
04/30/2003 12:06:38.86   33.795   33.734   34.937   35.034   33.600
04/30/2003 12:06:39.07   33.942   33.905   35.083   35.205   33.746

Is there any way I can have gnuplot read in and plot using the
fractional seconds, with xdata set to time?  Axis labels in
integer seconds are fine, so it's just the reading and plotting
I'm having trouble with.

If manipulating the data ahead of time, for example, converting the
above date/time to seconds since 2000 (including the fraction),
would help, I can easily do that.

Thanks.

     Ken Jacobs
     Synchrotron Radiation Center
     Univ. of Wisconsin-Madison
     (608) 877-2142

 - -
[[[[ to unsubscribe from info-gnuplot, send an email with body
unsubscribe info-gnuplot

]]]]

2. *** Help me to find 3DS "*.ASC" format decription & source for read it ***

3. timefmt for ntop log files

4. Command line command for rendering z-depth?

5. Help with timefmt command-please respond

6. OpenGL for SunOS

7. timefmt for 00:12:34.5678 ??

8. Corel constant crash

9. Gnuplot command timefmt

10. placeholders in timefmt string ?

11. timefmt and EPOCH data ?

12. Simple timefmt question

13. Problems using timefmt + Timestamp