surface_create_for_array() argument 1 must be array, not numpy.ndarray

hi,
TypeError happened when I ran contour_demo.py -dGtkCairo,Can anybody
tell me the reason?
TypeError: surface_create_for_array() argument 1 must be array, not
numpy.ndarray

···

-
window xp
python24
matplotlib 0.87

--
<>

I have verified that this occurs also on svn mpl with Linux,

In [4]:cairo.cairo_version_string()
Out[4]:'1.2.4'

The immediate solution is to use a different backend.

Eric

shuwj5460@...1221... wrote:

···

hi,
TypeError happened when I ran contour_demo.py -dGtkCairo,Can anybody
tell me the reason? TypeError: surface_create_for_array() argument 1 must be array, not
numpy.ndarray

-
window xp
python24
matplotlib 0.87