numarray + pylab

Hi, when I wrote a script like:

    > import numarray image = numarray.ones((30,30))

    > from pylab import * matshow(image) show()

    > I obtain an error message:

    > Traceback (most recent call last): File "", line 6,
    > in ? matshow(image) File
    > "/usr/lib/python2.4/site-packages/matplotlib/",
    > line 1647, in matshow w,h = figaspect(arr) File
    > "/usr/lib/python2.4/site-packages/matplotlib/",
    > line 480, in figaspect nr,nc = arr.shape[:2]
    > AttributeError: 'module' object has no attribute 'shape'

    > if I'm call pylab before to create the numarray array it's
    > ok:

It looks like your numerix setting is your .matplotlibrc file may be
Numeric, and you are trying to pass a Numeric array. Make sure that
the rc setting agrees with the actual array type used. To insure
this, we recommend that you use matplotlib.numerix to import the array
object and methods, rather than explicitly importing numarray
directly. matplotlib numerix, and by extension the pylab module,
already provide the proper array packages based on your rc setting.
Please see several FAQs on this issue regarding rc and numerix.