From 62dfc0d9f7a8427db5b1c35f51273b429dd497f0 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 9 Mar 2020 19:54:49 +0100 Subject: fix use of pyplot.close --- src/plots.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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): -- cgit v1.2.3