diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2017-07-18 17:16:58 +0200 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2017-07-18 17:16:58 +0200 |
| commit | aa3c3d52f6c739982985bb7ffe16344f341c1ade (patch) | |
| tree | 105ebdcb182f4cf415b47734227a312e84f8155b /results | |
| parent | 7de3ad6ccd0b6e995e374614f29b16872c0daae2 (diff) | |
| download | thesis-aa3c3d52f6c739982985bb7ffe16344f341c1ade.tar.gz thesis-aa3c3d52f6c739982985bb7ffe16344f341c1ade.tar.bz2 thesis-aa3c3d52f6c739982985bb7ffe16344f341c1ade.zip | |
Adds 6 graphs to the thesis.
Diffstat (limited to 'results')
| -rwxr-xr-x | results/graphhelper.py | 28 |
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))) + |
