From 4624070877eee67877c77f8dce9eeb401e9a9812 Mon Sep 17 00:00:00 2001 From: Filippo Martini Date: Tue, 22 Dec 2020 20:40:12 +0100 Subject: [PATCH] Clear plt buf --- PyCTBN/classes/structure_estimator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/PyCTBN/classes/structure_estimator.py b/PyCTBN/classes/structure_estimator.py index 48b137c..ac315f6 100644 --- a/PyCTBN/classes/structure_estimator.py +++ b/PyCTBN/classes/structure_estimator.py @@ -286,6 +286,7 @@ class StructureEstimator(object): name += '_' + str(self._sample_path._importer.dataset_id()) name += '.png' plt.savefig(name) + plt.clf() print("Estimated Structure Plot Saved At: ", os.path.abspath(name))