Looks like a bug -- it should accept either 3 or 4 columns. I'll have a chance to look at this further this afternoon.
Cheers, Mike Ben Axelrod wrote: > > I get an error when I use the scatter plot and set the ācā value to a > list of 3-tuples. The error goes away if I use 4-tuples instead. Are > colors with only 3 values not supported anymore? > > ⦠> > File "C:\Python24\Lib\site-packages\matplotlib\axes.py", line 4807, in > scatter > > colors = mcolors.colorConverter.to_rgba_array(c, alpha) > > File "C:\Python24\Lib\site-packages\matplotlib\colors.py", line 343, > in to_rgba_array > > c[i] = self.to_rgba(cc, alpha) # change in place > > ValueError: shape mismatch: objects cannot be broadcast to a single shape > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------- 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-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users