Skip to content

Commit

Permalink
Merge pull request #144 from Jammy2211/feature/garbabe_collection
Browse files Browse the repository at this point in the history
Matplotlib Garbage Collection
  • Loading branch information
Jammy2211 authored Nov 11, 2024
2 parents 68200db + 838c642 commit fa21a87
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions autoarray/plot/wrap/base/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,6 @@ def close(self):
"""
Wraps the Matplotlib method 'plt.close' for closing a figure.
"""
if plt.fignum_exists(num=1):
plt.close()
plt.close()
import gc
gc.collect()

0 comments on commit fa21a87

Please sign in to comment.