Re: [Matplotlib-users] Memory trouble with imshow

2008-02-19 Thread John Hunter
On Feb 19, 2008 8:37 AM, Leif Oppermann <[EMAIL PROTECTED]> 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

[Matplotlib-users] Memory trouble with imshow

2008-02-19 Thread Leif Oppermann
Dear all, I ran into a memory problem when trying to draw a few hundred png files using one imshow per file. The problem can be boiled down to the attached code which eats my memory very quickly until Python bombs out. I tried to "del" objects after their use, looked for garbage and read the u