From aa3c3d52f6c739982985bb7ffe16344f341c1ade Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Tue, 18 Jul 2017 17:16:58 +0200 Subject: Adds 6 graphs to the thesis. --- results/graphhelper.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 results/graphhelper.py (limited to 'results') 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))) + -- cgit v1.2.3-70-g09d2