|
From: John H. <jd...@gm...> - 2008-02-19 14:48:52
|
On Feb 19, 2008 8:37 AM, Leif Oppermann <lx...@cs...> wrote: > from pylab import * > import gc > for i in range (1000): > A=rand(1024,1024) > im = imshow(A) > #del A #doesn't help > #del im #doesn't help > #print gc.garbage # no garbage matplotlib overplots by default -- try setting hold(False) before your loop, and call gc.collect() occassionally eg if (i%100)==0: gc.collect() JDH |