Matthieu Brucher wrote: > This is done (with corresponding simplification of the code and improved > error checking and reporting), and I have made slight changes to > scatter, but there is still an ambiguity in scatter's argument handling. > It was and is resolved in favor of treating the c argument as an array > rather than an rgb or rgba sequence in any case where it could be > either. (To be safe, if you want c to be an mpl color, use a string > form of colorspec as specified in the scatter docstring.) I don't know > whether this ambiguity, or possibly a bug in its resolution, was what > prompted your original message. In any case, please try the svn version > and see if it does what you want. If it does not, then please say > exactly what c you are passing in to scatter, what scatter is doing, > and > what you think it should do instead. I never understood that from your > previous messages. > > Eric > > > Thanks for the update, I'll try it tuesday from work, but I don't think > it will change anything. I'll post some pictures/data if you want. > What I'm passing as argument for c is a numpy array of dimension (N, 3) > with floats between 0 and 1. When I get rid of the check at line 3777, I > can have a good scatter plot with the correct colors.
OK, I thought that might be the case. The behavior you want was not actually supported by scatter--at least it was contrary to the docstring--but it is reasonable, so I have made changes that I think will do what you want. I also changed the docstring to reflect this. Eric ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel