Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: =?iso-8859-1?Q?Jouni_K=2E_Sepp=E4nen?= <jks-X3B1VOXEql0 <at> public.gmane.org>
Subject: Re: Discrete legend
Newsgroups: gmane.comp.python.matplotlib.general
Date: Friday 27th July 2007 12:18:05 UTC (over 10 years ago)
"Jose Gomez-Dans" 
writes:

> I realise that the legend class has some support for patches, but how
> does one go about using them? I can't just add a legend (I get a very
> messy legend, one for every patch in my plot). 

Pass to the legend command a list of patches, and the legend will
only show those patches. Here's a quick example:
 
CD: 3ms