summaryrefslogtreecommitdiff
path: root/scripts/plotdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/plotdiff')
-rwxr-xr-xscripts/plotdiff25
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/plotdiff b/scripts/plotdiff
new file mode 100755
index 00000000..debd7000
--- /dev/null
+++ b/scripts/plotdiff
@@ -0,0 +1,25 @@
+#!/usr/bin/python
+
+import sys
+import matplotlib.pylab as plt
+import numpy
+
+mean = None
+deviation = None
+
+with open(sys.argv[1], 'r') as f:
+ for l in f:
+ l = l.strip()
+ s = l.split()
+ if l.startswith('Compared'):
+ N = int(s[3])
+ if mean is None:
+ mean = numpy.zeros(int(s[5]))
+ deviation = numpy.zeros(int(s[5]))
+ elif l.startswith('mean'):
+ mean[N] = float(s[2])
+ deviation[N] = float(s[5])
+
+plt.plot(mean)
+plt.plot(deviation)
+plt.show()