Andrew Stock wrote: > My interpretation of this is that either of the three values attempted > in the code example should work. However, all of these fail. > > from pylab import * > > x = [1,2,3] > y = [2,4,6] > c = ['#ff0000', '#00ff00', '#0000ff'] > c = ['b','r', 'g'] > c = [(1,0,0), (0,1,0), (0,0,1)] > > scatter(x, y, c=c) > > show() > > If I change the call to scatter() to a call to bar() as so: > > bar(x, y, color = c) > > then each of the three examples work as I would expect. > > Am I missing something in my interpretation of the documentation for > scatter? Can anyone point out what I've missed?
Well, I can get the last one to work with SVN HEAD. The others don't work for me either, though I agree they probably should. It looks like any 1D sequence will trigger colormapping instead of strings being mapped to rgba arrays. I'll keep digging to see what changed. (Unless someone beats me to it.) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel