Show shapes on scatterplot legend?

I'm making some scatter plots which will probably end up getting printed
in black and white. I'm actually drawing two scatter plots onto one
axes. So to the distinguish between the two plots I've had them use
different marker shapes and different shades of grey.

The problem is that the legend displays only a rectangular block
indicating the color for each plot. Is there a way to get the marker
shapes of scatter plots into the legend?

Thanks

I don't believe there is at present. There was a recent discussion about this on the list, and it's on the radar as something to add for a future release.

Cheers,
Mike

chombee wrote:

···

I'm making some scatter plots which will probably end up getting printed
in black and white. I'm actually drawing two scatter plots onto one
axes. So to the distinguish between the two plots I've had them use
different marker shapes and different shades of grey.

The problem is that the legend displays only a rectangular block
indicating the color for each plot. Is there a way to get the marker
shapes of scatter plots into the legend?

Thanks

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

Oh well. Good to know it's on the radar. For now I'll just modify my
plots after the fact with the gimp.

···

On Fri, 2008-02-29 at 08:56 -0500, Michael Droettboom wrote:

I don't believe there is at present. There was a recent discussion
about this on the list, and it's on the radar as something to add for a
future release.

Hi,

···

On Thu, Feb 28, 2008 at 7:45 PM, chombee <chombee@…1335…> wrote:

The problem is that the legend displays only a rectangular block

indicating the color for each plot. Is there a way to get the marker

shapes of scatter plots into the legend?

I faced a similar problem some time ago, and got some help from the list:
<http://article.gmane.org/gmane.comp.python.matplotlib.general/9860>

Meaning: you can create a Patch, fill it with some colours, and stick it in the legend. It might be too much of a hassle. However, there might be an easy mapping between the marker and the patch?

J


Centre for Terrestrial Carbon Dynamics
Department of Geography, University College London
Gower Street, London WC1E 6BT, UK