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, each call to imshow is adding an image without deleting the previous one. Eric > > > How is it possible to loop over imshow, without having this problem ? > > Thanks in advance, > > yves > > > > > > ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users