Skip to content

Commit

Permalink
fixup: save or show benchmark figure
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed Sep 12, 2024
1 parent 3eabf39 commit 82681b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmark/plot/Cabana_BenchmarkPlotUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,8 @@ def createPlot(fig, ax, data: AllData, speedup=False, backend_label=True, cpu_na
ax.set_yscale('log')

fig.tight_layout()
plt.show()

if dpi:
plt.savefig(filename, dpi=dpi)
else:
plt.show()

0 comments on commit 82681b0

Please sign in to comment.