From a56f09edb1f63eef3eee28179be94fdfcdf6e523 Mon Sep 17 00:00:00 2001 From: Andrea Arteaga Date: Mon, 3 Sep 2012 23:37:10 +0200 Subject: Correct axis. --- numbench/report.py | 7 +++++-- 1 file 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', []): -- cgit v1.2.3-65-gdbad