Re: [Matplotlib-users] plotting 100's of figures, mpl slows and consumes memory!

2009-07-18 Thread John [H2O]
Below is what I am trying to do, perhaps I am doing something wrong somewhere? John Hunter-4 wrote: > > > or explicitly reuse the same fig by giving a figure number and clearing > it: > > for i in range(1000): > fig = plt.figure(1) > # plot something > fig.cla() > > JDH > My Pr

Re: [Matplotlib-users] plotting 100's of figures, mpl slows and consumes memory!

2009-07-17 Thread John Hunter
On Fri, Jul 17, 2009 at 7:02 PM, John [H2O] wrote: > > I have a script looping through and plotting 100's of figures. It runs fine, > but after the first few plots, the loop considerably slows down and the > memory usage keeps going up. > > The script is quite complicated, so can't really paste it

[Matplotlib-users] plotting 100's of figures, mpl slows and consumes memory!

2009-07-17 Thread John [H2O]
I have a script looping through and plotting 100's of figures. It runs fine, but after the first few plots, the loop considerably slows down and the memory usage keeps going up. The script is quite complicated, so can't really paste it here, but I am trying to pass figure instances around and I