summaryrefslogtreecommitdiff
path: root/results/graphhelper.py
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2017-07-18 17:16:58 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2017-07-18 17:16:58 +0200
commitaa3c3d52f6c739982985bb7ffe16344f341c1ade (patch)
tree105ebdcb182f4cf415b47734227a312e84f8155b /results/graphhelper.py
parent7de3ad6ccd0b6e995e374614f29b16872c0daae2 (diff)
downloadthesis-aa3c3d52f6c739982985bb7ffe16344f341c1ade.tar.gz
thesis-aa3c3d52f6c739982985bb7ffe16344f341c1ade.tar.bz2
thesis-aa3c3d52f6c739982985bb7ffe16344f341c1ade.zip
Adds 6 graphs to the thesis.
Diffstat (limited to 'results/graphhelper.py')
-rwxr-xr-xresults/graphhelper.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/results/graphhelper.py b/results/graphhelper.py
new file mode 100755
index 0000000..6c6bbe2
--- /dev/null
+++ b/results/graphhelper.py
@@ -0,0 +1,28 @@
+#!/usr/bin/python
+
+import re
+import sys
+
+for line in sys.stdin:
+
+ res = re.findall('(.*?) \((.*?)\)', line)
+
+ plot1 = ["(0,0)"]
+ plot2 = ["(0,0)"]
+ plot3 = ["(0,0)"]
+
+ current = 100;
+ for tup in res:
+ val = float(tup[0]);
+ stdev = float(tup[1]);
+
+ plot1.append("(" + str(current) + "," + "{0:.3f}".format(val) + ")")
+ plot2.append("(" + str(current) + "," + "{0:.3f}".format(val + stdev) + ")")
+ plot3.append("(" + str(current) + "," + "{0:.3f}".format(val - stdev) + ")")
+
+ current += 100
+
+ print("{{{0}}};".format("".join(plot1)))
+ print("{{{0}}};".format("".join(plot2)))
+ print("{{{0}}};".format("".join(plot3)))
+