[Matplotlib-users] MPL colors

2008-12-09 Thread Mauro Cavalcanti
Dear ALL, MPL accepts several formats for passing color information for the plotting methods (plot, xlabel, ylabel, etc.) and these are well documented. The set_color() and other methods in matplotlib.Lines.Line2D accept all these formats, but I could not figure out how to retrieve the current

Re: [Matplotlib-users] MPL colors

2008-12-09 Thread John Hunter
On Tue, Dec 9, 2008 at 1:01 PM, Mauro Cavalcanti [EMAIL PROTECTED] wrote: Dear ALL, MPL accepts several formats for passing color information for the plotting methods (plot, xlabel, ylabel, etc.) and these are well documented. The set_color() and other methods in matplotlib.Lines.Line2D

Re: [Matplotlib-users] MPL colors

2008-12-09 Thread Mauro Cavalcanti
Dear John, Thanks, it works well! Best regards, 2008/12/9 John Hunter [EMAIL PROTECTED]: Yep, we have a color converter for that -- it recognizes any mpl color string and returns rgba: In [72]: from matplotlib.colors import colorConverter In [73]: colorConverter.to_rgba('b') Out[73]: