diff options
author | Andrea Arteaga <andyspiros@gmail.com> | 2012-09-03 23:37:10 +0200 |
---|---|---|
committer | Andrea Arteaga <andyspiros@gmail.com> | 2012-09-03 23:37:10 +0200 |
commit | a56f09edb1f63eef3eee28179be94fdfcdf6e523 (patch) | |
tree | 84e81de10ef1535d0b7af71fd2b1948f671371f7 | |
parent | Work on reports: smaller legend, smarter labels, errorbars. (diff) | |
download | auto-numerical-bench-a56f09edb1f63eef3eee28179be94fdfcdf6e523.tar.gz auto-numerical-bench-a56f09edb1f63eef3eee28179be94fdfcdf6e523.tar.bz2 auto-numerical-bench-a56f09edb1f63eef3eee28179be94fdfcdf6e523.zip |
Correct axis.
-rw-r--r-- | numbench/report.py | 7 |
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', []): |