diff options
author | Jan Klemkow <j.klemkow@wemelug.de> | 2013-02-01 15:31:42 +0100 |
---|---|---|
committer | Jan Klemkow <j.klemkow@wemelug.de> | 2013-02-01 15:32:28 +0100 |
commit | cb49d38032bd9b1ba8cac62026df15d906db4248 (patch) | |
tree | 197f66e90f22236fa4e32ebba957827a5af39429 /src | |
parent | da738e82a0bdd1379efa0560c336f030a85f39a1 (diff) | |
download | advtime-cb49d38032bd9b1ba8cac62026df15d906db4248.tar.gz advtime-cb49d38032bd9b1ba8cac62026df15d906db4248.tar.bz2 advtime-cb49d38032bd9b1ba8cac62026df15d906db4248.zip |
improve graph plotting with labes and units
Diffstat (limited to 'src')
-rw-r--r-- | src/draw.plot | 21 |
1 files 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 : |