Re: [Matplotlib-users] Discrete legend

2007-07-27 Thread Jouni K . Seppänen
"Jose Gomez-Dans" <[EMAIL PROTECTED]> 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 leg

[Matplotlib-users] Discrete legend

2007-06-12 Thread Jose Gomez-Dans
Hi, I am plotting a number of polygons with different colours (results from an image clustering or classification algorithm). I'd like to have a map-like legend, with a square filled with some colour and some text describing what it is (a quick search in Google comes up with the following example: