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

The cairo backend was developed using Numeric and the problem you report
is triggered when using numpy. The TypeError has been fixed in SVN so it
should not be a problem in the next matplotlib release.

Running contour_demo.py works for figure 1,2,3 but figure 4 highlights
another problem.

Steve

Send instant messages to your online friends http://au.messenger.yahoo.com

···

On Sun, 2006-12-24 at 22:43 -0800, matplotlib-users-request@lists.sourceforge.net 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