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(...)
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
[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 ru
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 ones
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
t