[Matplotlib-users] Memory leak in basemap or matplotlib

2007-03-26 Thread Jesper Larsen
Hi matplotlib users, I'm using matplotlib for a long running process. Unfortunately the memory usage continue to grow as the process runs. I have appended a simple example which illustrates this at the end of this mail. Unfortunately I haven't figured out how to use the information obtainable

Re: [Matplotlib-users] Memory leak in basemap or matplotlib

2007-03-26 Thread Jeff Whitaker
Jesper Larsen wrote: Hi matplotlib users, I'm using matplotlib for a long running process. Unfortunately the memory usage continue to grow as the process runs. I have appended a simple example which illustrates this at the end of this mail. Unfortunately I haven't figured out how to use

Re: [Matplotlib-users] Memory leak in basemap or matplotlib

2007-03-26 Thread Eric Firing
Jeff Whitaker wrote: Jesper Larsen wrote: Hi matplotlib users, I'm using matplotlib for a long running process. Unfortunately the memory usage continue to grow as the process runs. I have appended a simple example which illustrates this at the end of this mail. Unfortunately I haven't

Re: [Matplotlib-users] Memory leak in basemap or matplotlib

2007-03-26 Thread Jeff Whitaker
Eric Firing wrote: Jeff Whitaker wrote: Jesper Larsen wrote: Hi matplotlib users, I'm using matplotlib for a long running process. Unfortunately the memory usage continue to grow as the process runs. I have appended a simple example which illustrates this at the end of this mail.

Re: [Matplotlib-users] Memory leak in basemap or matplotlib

2007-03-26 Thread John Hunter
On 3/26/07, Jeff Whitaker [EMAIL PROTECTED] wrote: Jesper: For now I recommend adding 'pylab.cla()' after the fig.clear() as a workaround. I don't really understand why that is necessary - perhaps John or Eric can clarify whether this is indeed a bug. I suggest adding a gc.collect after

Re: [Matplotlib-users] Memory leak in basemap or matplotlib

2007-03-26 Thread John Hunter
On 3/26/07, Jeff Whitaker [EMAIL PROTECTED] wrote: John Hunter wrote: John: Nope, that has no effect. What does cla clean up that clf doesn't? Well, it flushes all the lines, removes the ticks, that kind of thing. But fig.clear sets self.axes = [] so if there are no references to the axes