From cb49d38032bd9b1ba8cac62026df15d906db4248 Mon Sep 17 00:00:00 2001 From: Jan Klemkow Date: Fri, 1 Feb 2013 15:31:42 +0100 Subject: improve graph plotting with labes and units --- src/draw.plot | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/draw.plot b/src/draw.plot index 77ca447..6421aeb 100644 --- a/src/draw.plot +++ b/src/draw.plot @@ -1,15 +1,22 @@ # draw frame diff graph set terminal svg size 800,600 dynamic; -set output "graph.svg"; +set ylabel 'diff' +set xlabel 'Zeit [sec]' -plot 'data.txt' using 2 with lines lt rgb "#204a87" title "average", \ - 'data.txt' using 3 with lines lt rgb "#a40000" title "diff", \ - 'data.txt' using 4 with lines lt rgb "#4e9a06" title "rise"; +set output "../doc/image/cuts.svg"; +plot 'data.txt' using ($1 / 1000):2 with lines lt rgb "#204a87" title "average", \ + 'data.txt' using ($1 / 1000):3 with lines lt rgb "#a40000" title "diff", \ + 'data.txt' using ($1 / 1000):4 with lines lt rgb "#4e9a06" title "rise"; -set output "overlap.svg"; -set xrange [0:100000] +set output "../doc/image/cuts_diff.svg"; +plot 'data.txt' using ($1 / 1000):3 with lines lt rgb "#a40000" title "diff", \ + 'data.txt' using ($1 / 1000):4 with lines lt rgb "#4e9a06" title "rise"; -plot 'overlap.txt' using 1:2 with lines lt rgb "#204a87" title "diff" +# draw overlaping graph + +set xrange [0:60] +set output "../doc/overlap.svg"; +plot 'overlap.txt' using ($1 / 1000):2 with lines lt rgb "#204a87" title "diff" # vim: set syntax=gnuplot : -- cgit