summaryrefslogtreecommitdiff
path: root/src/draw.plot
diff options
context:
space:
mode:
Diffstat (limited to 'src/draw.plot')
-rw-r--r--src/draw.plot21
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 :