matplotlib and numpy cause MemoryError


I have a line of matplotlib code,mif)

that causes the line #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?