An approach to Rainbow text was given here:
But what I'd like is to apply this to the legend. Specifically, in
the legend I'd like to call attention to certain words in the label
with color. Any ideas?
Those who don't understand recursion are doomed to repeat it
Matplotlib-users mailing list