This works as well, as long as it functions :)

My idea requires little less typing. But forgot previously, text string should be whitespace split.

On Tue, Feb 7, 2012 at 11:43 AM, Benjamin Root <ben.root@ou.edu> wrote:


On Tue, Feb 7, 2012 at 12:38 PM, Gökhan Sever <gokhansever@gmail.com> wrote:
Posted at https://github.com/matplotlib/matplotlib/issues/697

I think a syntax like:

plt.ylabel("Sun is shining.", color='rgb')

would be a good start. (Assuming len of string == len of colors)


Don't know if I like that.  It becomes even more difficult to convert the color spec into rgb.  How about this?

plt.ylabel(['Sun", "is", "shining"], color=['r', 'g', 'b'])

By having the input label be an array, that would force ylabel to recognize that the color sequence should also be treated similarly.

Ben Root




--
Gökhan