summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Klemkow <j.klemkow@wemelug.de>2012-11-15 08:28:03 +0100
committerJan Klemkow <j.klemkow@wemelug.de>2012-11-15 08:28:03 +0100
commita1f6fddabbfc7467316fbc02496790a4f742bbd1 (patch)
tree4d78663e3a030cda4345ec893fd8e10fc667bcf1 /src
parentc7c47cdf23892f7209bbd2acaf420a8d34336406 (diff)
downloadadvtime-a1f6fddabbfc7467316fbc02496790a4f742bbd1.tar.gz
advtime-a1f6fddabbfc7467316fbc02496790a4f742bbd1.tar.bz2
advtime-a1f6fddabbfc7467316fbc02496790a4f742bbd1.zip
Add graph plotting script.
Diffstat (limited to 'src')
-rw-r--r--src/draw.plot8
-rwxr-xr-xsrc/run4
2 files changed, 12 insertions, 0 deletions
diff --git a/src/draw.plot b/src/draw.plot
new file mode 100644
index 0000000..c3de0a6
--- /dev/null
+++ b/src/draw.plot
@@ -0,0 +1,8 @@
+# draw frame diff graph
+
+set terminal svg size 800,600 dynamic;
+
+set output "graph.svg";
+
+plot 'data.txt' using 2 with lines lt rgb "#204a87" title "average", \
+ 'data.txt' using 3 with lines lt rgb "#a40000" title "diff";
diff --git a/src/run b/src/run
new file mode 100755
index 0000000..2a18fc1
--- /dev/null
+++ b/src/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+./advtime -a -d ../heute100sec.wmv > data.txt
+gnuplot -p draw.plot