[Matplotlib-users] Possible memory-leak while plotting in a loop

2008-01-31 Thread Aaron Botnick
Hi all, I'm using MPL to plot a 6 panel figure of 2d data using pcolormesh. I started this script last night, and found it consuming over 3GB of memory when I got in this morning. After reading through old posts to this list, I came across this suggestion:

Re: [Matplotlib-users] Possible memory-leak while plotting in a loop

2008-01-31 Thread Michael Droettboom
Aaron Botnick wrote: I'm using MPL to plot a 6 panel figure of 2d data using pcolormesh. I started this script last night, and found it consuming over 3GB of memory when I got in this morning. Another one... ;) After reading through old posts to this list, I came across this suggestion:

Re: [Matplotlib-users] Possible memory-leak while plotting in a loop

2008-01-31 Thread Michael Droettboom
Also, if you're adventurous, try installing valgrind and running: valgrind --tool=massif python slicer.py valgrind --tool=memcheck --leak-check=yes --log-file=slicer_leak python slicer.py and send me the output -- (probably off list because they will be large files). Cheers, Mike Aaron