summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Arteaga <andyspiros@gmail.com>2012-09-03 23:37:10 +0200
committerAndrea Arteaga <andyspiros@gmail.com>2012-09-03 23:37:10 +0200
commita56f09edb1f63eef3eee28179be94fdfcdf6e523 (patch)
tree84e81de10ef1535d0b7af71fd2b1948f671371f7
parentWork on reports: smaller legend, smarter labels, errorbars. (diff)
downloadauto-numerical-bench-a56f09edb1f63eef3eee28179be94fdfcdf6e523.tar.gz
auto-numerical-bench-a56f09edb1f63eef3eee28179be94fdfcdf6e523.tar.bz2
auto-numerical-bench-a56f09edb1f63eef3eee28179be94fdfcdf6e523.zip
Correct axis.
-rw-r--r--numbench/report.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/numbench/report.py b/numbench/report.py
index 29bcd99..d5b3dad 100644
--- a/numbench/report.py
+++ b/numbench/report.py
@@ -42,7 +42,7 @@ class Plotter:
self.curstyle = 0
# Open figure
- self.figure = plt.figure(figsize=(12, 9), dpi=300)
+ plt.figure(figsize=(12, 9), dpi=300)
def addPlot(self, X, label):
@@ -55,7 +55,7 @@ class Plotter:
plt.errorbar(x, y, e, fmt=style, label=label, hold=True)
def savePlot(self, fname):
- axes = self.figure.get_axes()
+ axes = plt.axes()
axes.set_xscale(self.conf.get('xscale', 'linear'))
axes.set_yscale(self.conf.get('yscale', 'linear'))
plt.legend(loc='best', prop={'size':'x-small'})
@@ -91,6 +91,9 @@ def saveReport():
p = Plotter(cfg.module.reportConf())
for tid, test in cfg.tests.items():
+
+ print "RESULTS: ", test['results']
+
longlabel = len(test.get('implementations')) > 1
for impl in test.get('implementations', []):