From 8563c32d0f2e9529f6917537fe3e15503f4dbc2f Mon Sep 17 00:00:00 2001 From: Mikhail Korobov Date: Wed, 7 May 2014 04:51:10 +0600 Subject: [PATCH] Use less aggressive garbage collection. Fixes GH-3044. --- lib/matplotlib/_pylab_helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/_pylab_helpers.py b/lib/matplotlib/_pylab_helpers.py index 229d4bd5a84c..f5219208ef27 100644 --- a/lib/matplotlib/_pylab_helpers.py +++ b/lib/matplotlib/_pylab_helpers.py @@ -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): @@ -90,7 +90,7 @@ def destroy_all(): Gcf._activeQue = [] Gcf.figs.clear() - gc.collect() + gc.collect(1) @staticmethod def has_fignum(num): pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy