|
From: Theo <th...@gm...> - 2013-11-07 19:39:33
|
Hi Bart,
I read again the description of 'every' carefully (which I also
recommend to you ;-).
Obviously, empty lines in data rows seperate individual data blocks.
So, if there is an empty line in your data it starts a new block.
Let's use the simplified data:
"blabla1",,,
"blabla2",,,
"blabla3",,,
"blabla4",,,
"blabla6",,,
"date time","A","B","C"
30-10 11:19:40,1.0,2.0,3.0
30-10 11:19:41,1.1,2.1,3.1
30-10 11:19:42,1.2,2.2,3.2
30-10 11:19:43,1.3,2.3,3.3
30-10 11:19:44,1.4,2.4,3.4
The command to plot this:
plot 'Data.dat' u 1:2 every 1:1:2:1 w lp t "Title 2" # and so on...
which is equivalent to
plot 'Data.dat' u 1:2 every ::2:1 w lp t "Title 2"
# explanation of every 1:1:2:1
data points increment is 1
block increment is 1
starting point is 2 (points in each block start from 0)
starting block is 1 (blocks start from 0)
However, I have not found a way to automatically take the columnheaders
from line 2 of block 1.
gnuplot seems to always take line 0 from block 0.
|