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 "test.py", line 6, in ?
matshow(image)
File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line 1647, in matshow
w,h = figaspect(arr)
File "/usr/lib/python2.4/site-packages/matplotlib/figure.py", 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:
from pylab import *
import numarray
image = numarray.ones((30,30))
matshow(image)
show()
just to let you know.
N.