markerfacecolor in legend

Hi,

I would like to have a different marker facecolor in the legend that in
the plot. Is there any way to change this color?

In more detail my problem is the following. I plotted 6 dataset. They
are divided in 2 groups; one with blue and the other with red color.
In each group I have used 3 different markers. I have annotated the
meaning of the color in the plot, so I don't need a legend with 6 lines.
I only need 3, but I would like that the markers in this plot will be
empty (markerfacecolor=white). Is it possible?

Best regards,

Zunbeltz

···

--
Dr Zunbeltz Izaola
G-I1 Methods and instruments of neutron scattering
Tel +49 30 8062-3179

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
Glienicker Straße 100, 14109 Berlin
Vorsitzende des Aufsichtsrates: Dr. Beatrix Vierkorn-Rudolph
Stellvertretende Vorsitzende: Dr. Jutta Koch-Unterseher
Geschäftsführer: Prof. Dr. Anke Rita Pyzalla, Prof. Dr. Dr. h.c.
Wolfgang Eberhardt, Dr. Ulrich Breuer
Sitz der Gesellschaft: Berlin
Handelsregister: AG Charlottenburg, 89 HRB 5583

One option would be to use a proxy artist, an artist with properties you want.

http://matplotlib.sourceforge.net/users/legend_guide.html#using-proxy-artist

Regards,

-JJ

···

On Fri, Nov 20, 2009 at 7:01 PM, Zunbeltz Izaola <zunbeltz.izaola@...2872...> wrote:

Hi,

I would like to have a different marker facecolor in the legend that in
the plot. Is there any way to change this color?

In more detail my problem is the following. I plotted 6 dataset. They
are divided in 2 groups; one with blue and the other with red color.
In each group I have used 3 different markers. I have annotated the
meaning of the color in the plot, so I don't need a legend with 6 lines.
I only need 3, but I would like that the markers in this plot will be
empty (markerfacecolor=white). Is it possible?

Best regards,

Zunbeltz

--
Dr Zunbeltz Izaola
G-I1 Methods and instruments of neutron scattering
Tel +49 30 8062-3179

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
Glienicker Straße 100, 14109 Berlin
Vorsitzende des Aufsichtsrates: Dr. Beatrix Vierkorn-Rudolph
Stellvertretende Vorsitzende: Dr. Jutta Koch-Unterseher
Geschäftsführer: Prof. Dr. Anke Rita Pyzalla, Prof. Dr. Dr. h.c.
Wolfgang Eberhardt, Dr. Ulrich Breuer
Sitz der Gesellschaft: Berlin
Handelsregister: AG Charlottenburg, 89 HRB 5583

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options