From: John W. <was...@gm...> - 2007-05-06 19:22:36
|
Trying again, a little more detail: I am trying to use the color setting feature of SCATTER: colors=cm.spectral(linespace(0,100,len(x)) then, plotting: scatter(x,y,c=colors) I get the error: TypeError: c must be a matplotlib color arg or a sequence of them But I don't understand. >x.shape >(600,) >colors.shape >(600,4) so it appears to me that colors is indeed a sequence of intensities the same length as x? What is wrong then?? Thanks, .john |