matplotlib and numpy cause MemoryError

Hi

I have a line of matplotlib code

-self.ax.plot(plot_data,mif)

that causes the line

-self.data=numpy.zeros(shape=dims) #dims is a constant, not large

to throw a MemoryError exception.

(if I comment out the first line I get no error.)

Is it possible that matplotlib is dereferencing an array somewhere?

This is on a windows xp machine with latest numpy and the latest matplotlib.

I have a feeling this may be a nightmare to figure out what matplotlib and/or numpy are doing wrong. Any ideas where I can start?

Mathew