aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-03-09 19:54:49 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-03-09 19:54:49 +0100
commit62dfc0d9f7a8427db5b1c35f51273b429dd497f0 (patch)
tree92148a4a84213e75c070532368b89d1b51751a5f
parent5d69940e710cf400b14c092cd21264261d5f4dfc (diff)
downloadallocbench-62dfc0d9f7a8427db5b1c35f51273b429dd497f0.tar.gz
allocbench-62dfc0d9f7a8427db5b1c35f51273b429dd497f0.zip
fix use of pyplot.close
-rw-r--r--src/plots.py6
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):