i have 2 csv files on 80k strings in each.
the first file have structure:
12.11.12 - 00:59:58;428,8; 12.11.12 - 00:59:59;428,9; ... 12.11.12 - 21:53:32;592,7; 12.11.12 - 21:53:35;596,4; ... 14.11.12 - 12:31:41;510,0; 14.11.12 - 12:31:41;510,0;
and second have scructure:
1;428.9; 1;428.9; 5;428.9; ... 117109;673.6; 117110;672.8; 117111;672.8; ... 214241;497.2; 214241;497.2; 214258;507.3;
how can plot both of csv files in gnuplot?
p.s. first column must x , second must y.
first, apparently can set delimiter thus:
set datafile separator ";"
then set time format first file, , set x time axis:
set timefmt "%d.%m.%y - %h:%m:%s" set xdata time
plot first file
plot "data1.csv" using 1:2
the second file x values don't seem have date format, instead perhaps seconds elapsed? that,
set datafile separator ";" plot "data2.csv" using 1:2
and don't set xdata time
. should have x axis in seconds. if need plot both @ same time, simplest pre-process 1 other.
Comments
Post a Comment