|
From: Jorge S. <jor...@ya...> - 2010-08-04 15:00:57
|
Jorge Scandaliaris <jorgesmbox-ml@...> writes: > > Hi, > I am adding several scatter plots to the same axis, each having a specific > color. When I call legend on the axis it correctly picks all scatter plots with > their symbols and labels, but it doesn't pick up the color. The example below > demonstrates this. What I would like to do is to have in the legend the marker > its color matching that of the set it represents. How would I do this? Answering my own question, I found a way to achieve what I wanted by using a proxy artist as suggested in this thread: http://thread.gmane.org/gmane.comp.python.matplotlib.general/20995/focus=20999 Maybe there's a better approach. I certainly would love legend to pick up on the color used in the scatter plot by its own. Jorge |