Re: [Matplotlib-users] Legend labels - interaction with functions

2008-05-22 Thread John Hunter
On Thu, May 22, 2008 at 9:45 AM, Jouni K. Seppänen <[EMAIL PROTECTED]> wrote: > I think this behavior of legend is suboptimal, but there is a logic to > it: by default you label objects in the order you draw them, and the > histogram plot happens to consist of several similarly-colored objects. T

Re: [Matplotlib-users] Legend labels - interaction with functions

2008-05-22 Thread Jouni K . Seppänen
David Simpson <[EMAIL PROTECTED]> writes: > This is probably my lack of knowledge of python, but how do I set up > legend labels for some bar-plots that have been produced inside a > function. For example, the following will nicely plot my bar-plots, but > then legend doesn't know about the colo

Re: [Matplotlib-users] Legend labels - interaction with functions

2008-05-22 Thread Friedrich Hagedorn
On Thu, May 22, 2008 at 02:52:13PM +0200, David Simpson wrote: > This is probably my lack of knowledge of python, but how do I set up > legend labels for some bar-plots that have been produced inside a > function. For example, the following will nicely plot my bar-plots, but > then legend doesn't

[Matplotlib-users] Legend labels - interaction with functions

2008-05-22 Thread David Simpson
This is probably my lack of knowledge of python, but how do I set up legend labels for some bar-plots that have been produced inside a function. For example, the following will nicely plot my bar-plots, but then legend doesn't know about the colours used, so here just uses black for both labels.