Skip to content

Commit

Permalink
Fixes some error bars in benchmark plots.
Browse files Browse the repository at this point in the history
  • Loading branch information
BertrandBordage committed Nov 23, 2014
1 parent ee33a6c commit 3eb8dcd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,15 @@ def plot(self):
for db in self.means.columns.levels[0]:
plt.figure()
self.means[db].plot(
kind='barh', xerr=self.stds[db], title=db, xlim=xlim,
figsize=(15, 10), subplots=True, layout=(4, 2),
kind='barh', xerr=self.stds[db], title=db,
xlim=xlim, figsize=(15, 10), subplots=True, layout=(4, 2),
sharey=True, legend=False)
plt.savefig(os.path.join(RESULTS_PATH, '%s_detail.svg' % db))

plt.figure()
self.means[db].mean(axis=1).plot(
kind='barh', xerr=self.stds[db], title=db, xlim=xlim)
kind='barh', xerr=self.stds[db].mean(axis=1), title=db,
xlim=xlim)
plt.savefig(os.path.join(RESULTS_PATH, '%s.svg' % db))


Expand Down

0 comments on commit 3eb8dcd

Please sign in to comment.