Skip to content

Commit

Permalink
Replace plt.clf with plt.close
Browse files Browse the repository at this point in the history
  • Loading branch information
j-otsuki committed Jun 27, 2024
1 parent 3b99354 commit 208a03f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dcore/dcore_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 208a03f

Please sign in to comment.