A module to change the style of matplotlib legends. Texts in legends are color-coded according to the corresponding lines/scatters. Markers and lines are removed from legends.
git clone https://github.com/roundhead/colorlegend
cd colorlegend
sudo python2 setup.py install
See example for details.