Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

timefmt error

26 views
Skip to first unread message

GnuPlot-user

unread,
Oct 8, 2012, 5:25:43 AM10/8/12
to
I have a csv file:

col 1 col 2 col 3
MM/DD/YYYY HH:MM:SS, Pressure, Temperature
.
.
.

set datafile separator ','
set xlabel 'Time & Date'
set xdata time
set timefmt "%m/%d/%Y %H:%M:%S"
set format x "%H:%M\n%d %b"
set xrange [*:*]
set xrange ['08/08/2012 00:00:00':'08/09/2012 23:59:59']

set ylabel 'Pressure'
set yrange [0:*]

plot 'P-T-data.csv' using 1:2 with lines

The error message i get is: illegal month

Not sure what to do on this one:(

Hans-Bernhard Bröker

unread,
Oct 8, 2012, 4:29:05 PM10/8/12
to
On 08.10.2012 11:25, GnuPlot-user wrote:
> plot 'P-T-data.csv' using 1:2 with lines
>
> The error message i get is: illegal month
>
> Not sure what to do on this one:(

You could start by showing us a representative sample of the actual data.

Alex van der Spek

unread,
Oct 16, 2012, 3:11:15 PM10/16/12
to
Probably you have a header in the file as well. Gnuplot doesn't like the
header line when it has to read timeformat data.

Try commenting that header out with a '#".

Alex van der Spek

"GnuPlot-user" <zana...@gmail.com> wrote in message
news:1e9b8685-7c01-4e73...@googlegroups.com...
0 new messages