Re: [Matplotlib-users] twinx memory leak

2008-07-15 Thread laurent oget
ttle > >> confused from reading this thread by whether or not twinx is > >> implicated. Also, I saw that you committed some changes vis-a-vis the > >> twinx leak > >> > >> r5747 | mdboom | 2008-07-11 13:21:53 -0500 (Fri, 11 Jul 2008) | 2 > >>

Re: [Matplotlib-users] twinx memory leak

2008-07-11 Thread laurent oget
0,0.9,0.45)) ax1=PL.twinx(ax) t=range(1000) st=[math.sin(x*0.01) for x in t] ax.plot(t,st) fig.clf() PL.close(1) gc.collect() print "GC" print len(gc.get_objects()) print len(gc.garbage) looptest() >>

[Matplotlib-users] twinx memory leak

2008-07-11 Thread laurent oget
I think i narrowed down the memory leak i have been chasing for a while. If i remove the call to twinx i get a slow leak, which would cause me trouble after a very long time. With the call to twinx, however i am losing thousands of objects at each loop. Thanks, Laurent

[Matplotlib-users] best way to produce many charts

2008-07-02 Thread laurent oget
I am using matplotlib to produce a big number(16000) of charts and am facing a steady memory leak. my code sofar looks like: while(1): fig=PL.figure(1) ..plot some things.. fig.clf() PL.close() am i missing something? Laurent -