diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-03-09 19:54:49 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-03-09 19:54:49 +0100 |
| commit | 62dfc0d9f7a8427db5b1c35f51273b429dd497f0 (patch) | |
| tree | 92148a4a84213e75c070532368b89d1b51751a5f | |
| parent | 5d69940e710cf400b14c092cd21264261d5f4dfc (diff) | |
| download | allocbench-62dfc0d9f7a8427db5b1c35f51273b429dd497f0.tar.gz allocbench-62dfc0d9f7a8427db5b1c35f51273b429dd497f0.zip | |
fix use of pyplot.close
| -rw-r--r-- | src/plots.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plots.py b/src/plots.py index 549179c..c92dd2f 100644 --- a/src/plots.py +++ b/src/plots.py @@ -144,7 +144,7 @@ def plot_single_arg(bench, plt.title(title.format(**label_substitutions)) _save_figure(bench, fig, sumdir, file_postfix, file_ext) - fig.close() + plt.close(fig) return fig @@ -213,7 +213,7 @@ def barplot_single_arg(bench, plt.title(title.format(**label_substitutions)) _save_figure(bench, fig, sumdir, file_postfix, file_ext) - fig.close() + plt.close(fig) def plot_fixed_arg(bench, @@ -269,7 +269,7 @@ def plot_fixed_arg(bench, plt.title(title.format(**label_substitutions)) _save_figure(bench, fig, sumdir, file_postfix, file_ext) - fig.close() + plt.close(fig) def export_facts_to_file(bench, comment_symbol, output_file): |
