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().
W
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