[Matplotlib-users] memory explosion !

2011-03-18 Thread Yves Revaz
Dear matplotlib users, The following very simple script generate an explosion of ram memory : from numpy import * import pylab as pl while 1: data = random.random((512,512)) pl.imshow(data) How is it possible to loop over imshow, without having this problem ? Thanks in advance, yves

Re: [Matplotlib-users] memory explosion !

2011-03-18 Thread Eric Firing
On 03/18/2011 11:15 AM, Yves Revaz wrote: Dear matplotlib users, The following very simple script generate an explosion of ram memory : from numpy import * import pylab as pl while 1: data = random.random((512,512)) pl.imshow(data) Try adding pl.clf() or pl.cla(). Without that,