Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use less aggressive garbage collection. Fixes GH-3044.
  • Loading branch information
kmike committed May 6, 2014
commit 8563c32d0f2e9529f6917537fe3e15503f4dbc2f
4 changes: 2 additions & 2 deletions lib/matplotlib/_pylab_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def destroy(num):
del Gcf.figs[num]
#print len(Gcf.figs.keys()), len(Gcf._activeQue)
manager.destroy()
gc.collect()
gc.collect(1)

@staticmethod
def destroy_fig(fig):
Expand All @@ -90,7 +90,7 @@ def destroy_all():

Gcf._activeQue = []
Gcf.figs.clear()
gc.collect()
gc.collect(1)

@staticmethod
def has_fignum(num):
Expand Down