From 208a03f7de2a7cc679b601beab4f47ba0436b290 Mon Sep 17 00:00:00 2001 From: Junya Otsuki Date: Thu, 27 Jun 2024 16:10:45 +0900 Subject: [PATCH] Replace plt.clf with plt.close --- src/dcore/dcore_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dcore/dcore_check.py b/src/dcore/dcore_check.py index af02fcc8..b532c55e 100644 --- a/src/dcore/dcore_check.py +++ b/src/dcore/dcore_check.py @@ -95,7 +95,7 @@ def print_chemical_potential(self): def __plot_init(self): if self.plot_called: - self.plt.clf() + self.plt.close() self.plt.figure(figsize=(8, 6)) # default return self.plot_called = True