Hello, I am using scatter to plot simple arrays. It seems to crash when I scatter an array of length 3. any other length works fine. I’m not savvy enough to know how to track this bug down. here is my code, and below that I pasted the error message the IDLE gave me. what might be the problem? thanks.
from pylab import *
array = [2,3,4]
faceColor = (1,1,1)
edgecolor='k', linewidth=1, alpha=0.5, s=50, label='hi')
the error message:
Traceback (most recent call last):
File “C:/Documents and Settings/TEMP/Desktop/test.py”, line 15, in -toplevel-
“C:\Python24\Lib\site-packages\matplotlib\pylab.py”, line 2192, in scatter
ret = gca().scatter(*args, **kwargs)
File “C:\Python24\lib\site-packages\matplotlib\axes.py”, line 3082, in scatter
File “C:\Python24\Lib\site-packages\matplotlib\cm.py”, line 60, in set_array
self._A = A.astype(nx.Float32)
AttributeError: ‘tuple’ object has no attribute ‘astype’
Bring photos to life! New PhotoMail makes sharing a breeze.