Re: [Matplotlib-users] Newbie. Memory useage question

2007-04-25 Thread brett . mcsweeney
Thanks John, that works perfectly. Best regards, Brett McSweeney On 4/23/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm producing series of plots (spectograms) in a program loop using imshow and saving each plot to .png. Even though I close() each plot after each savefig(...), the

Re: [Matplotlib-users] Newbie. Memory useage question

2007-04-24 Thread Matthias Michler
Hi, a friend gave me the little example I attached. He uses 'gca().images = []' to delete the images. I'm not sure about memory usage of that method, but I think deleting images (using clf() or the above way) is quite important, because otherwise one more image is drawn above the existing

Re: [Matplotlib-users] Newbie. Memory useage question

2007-04-24 Thread Eric Firing
[EMAIL PROTECTED] wrote: I'm producing series of plots (spectograms) in a program loop using imshow and saving each plot to .png. Even though I close() each plot after each savefig(...), the memory does not appear to be freed up, and the memory useage goes up and up as the program runs

Re: [Matplotlib-users] Newbie. Memory useage question

2007-04-24 Thread John Hunter
On 4/23/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm producing series of plots (spectograms) in a program loop using imshow and saving each plot to .png. Even though I close() each plot after each savefig(...), the memory does not appear to be freed up, and the memory useage goes up

[Matplotlib-users] Newbie. Memory useage question

2007-04-23 Thread brett . mcsweeney
I'm producing series of plots (spectograms) in a program loop using imshow and saving each plot to .png. Even though I close() each plot after each savefig(...), the memory does not appear to be freed up, and the memory useage goes up and up as the program runs (and stalls the computer as it