Package: python-matplotlib
Version: 0.98.1-1
Severity: serious

The current version of python-matplotlib in debian testing and lenny
has a number of serious bugs and omissions

 * Bug: memory leak using shared axes (attached script looptest.py
shows the leak)

 * Bug: transforms method offset_copy missing -- this breaks
examples/pylab_examples/transoffset.py

 * Omission - the doc directory was omitted from the 0.98.1 MANIFEST

These are fixed in matplotlib svn r5907
import math
import gc
import pylab as PL
from matplotlib.cbook import report_memory

def looptest():
    oldlen = 0
    for i in xrange(401):
        fig=PL.figure(1)
        ax = fig.gca()
        ax=fig.add_subplot(211)
        ax.set_position((0,0,0.9,0.45))
        ax1=PL.twinx(ax)
        t = PL.arange(1000)
        st = PL.sin(t*0.01)
        ax.plot(t,st)
        fig.clf()
        
        # any of these causes a memleak
        #PL.close(1)
        #PL.close(fig)
        #PL.close()
        
        gc.collect()
        val = report_memory(i)
        if i % 100 == 0:
            print i, "GC",
            print len(gc.get_objects()), len(gc.get_objects())-oldlen,
            print len(gc.garbage),
            print val
        oldlen = len(gc.get_objects())

looptest()

Reply via email to