Re: [matplotlib-devel] memory leak

2008-11-21 Thread Benoit Zuber
> > Well, you are still using some backend, probably a GUI one, even if no > figure pops up. You can run your script with --verbose-helpful to see > what is happening. > Sorry, I did not realise it (I suppose, I did not quite know what backend means, now I checked it on wikipedia ;-) . Runni

Re: [matplotlib-devel] memory leak

2008-11-21 Thread Benoit Zuber
> If you comment out agg you are using a gui backend presumably (which > one) and most of these are known to have some leaks, some of which are > beyond our control. This leak happened without any gui backend when I ran the script from the csh prompt like that: > python script.py > > When you

Re: [matplotlib-devel] memory leak

2008-11-21 Thread Benoit Zuber
> > I posted this on maplotlib-users list, but got no reply. I guess that > > bugs should rather be reported here... > > Could you post a *complete* script that demonstrates the leak, eg one > that calls the function and does any other cleanup? Does it help to > use gc.collect between function c

[matplotlib-devel] memory leak

2008-11-21 Thread Benoit Zuber
Hi, I posted this on maplotlib-users list, but got no reply. I guess that bugs should rather be reported here... I have noticed a memory leak when using pylab.pcolor. Here is the code, fa() and fb() do the same thing. The difference is the size of the array which is passed to pcolor. With a large