I posted this on maplotlib-users list, but got no reply. I guess that bugs should rather be reported here...
I have noticed a memory leak when using pylab.pcolor. Here is the code,
fa() and fb() do the same thing. The difference is the size of the array
which is passed to pcolor. With a large array pcolor leaks but not with a
import numpy as np
from matplotlib import pylab
""" This function leaks.
a = np.arange(1024**2)
a = a.reshape(1024,1024)
for i in range(1):
"""This function does not leak.
b = np.arange(1024)
b = b.reshape(32,32)
for i in range(1024):