Jorge Scandaliaris <jorgesmbox...@...> 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


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to