|
From: Daniel C. <dcl...@ya...> - 2009-06-03 09:56:34
|
Thanks, this exactly parses the file. It will also be a good exercise to understand that.
I supposed there would be a simpler way to do this in gnuplot. It is a common graph.
> you need gnuplot 4.3-cvs
>
> set datafile separator ","
> t=""
> plot for [i=0:4] 'ts.dat' us
> ((i==0&&$0==0)?(b=$2,t=stringcolumn(1)):99 ,
> $0==0?(a=b):99, $0==(i+1)?(b=$2,t=stringcolumn(1)):99 ,
> $0):(a) with lines
> title t
>
>
|