From: Steve C. <ste...@ya...> - 2006-12-27 02:14:41
|
On Sun, 2006-12-24 at 22:43 -0800, mat...@li... 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 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 |