Re: [Matplotlib-users] legends with fill_between

2009-04-01 Thread John Hunter
On Wed, Apr 1, 2009 at 2:50 PM, empty83 wrote: > > I understand why things were not behaving as I expected and I don't really > have any good ideas on how to make a legend from a RegularPolyCollection in > general. > > However, I do not grok why fill_between returns a RegularPolyCollection > rathe

Re: [Matplotlib-users] legends with fill_between

2009-04-01 Thread empty83
I understand why things were not behaving as I expected and I don't really have any good ideas on how to make a legend from a RegularPolyCollection in general. However, I do not grok why fill_between returns a RegularPolyCollection rather than a Polygon (like fill does). Does fill_between(x,y0,y

Re: [Matplotlib-users] legends with fill_between

2009-04-01 Thread Jae-Joon Lee
The matplotlib legend does not currently support fill_between. As a matter of fact, fill_between command creates RegularPolyCollection artist, and the mpl legend does not know how to handle this kind of artist at this time. And I personally do not have good idea how to draw a handle for this (a sim

[Matplotlib-users] legends with fill_between

2009-03-31 Thread empty83
i can't make a legend for a fill_between and don't understand what i'm doing wrong. the following code seems like the most obvious way to make a legend for a fill_between, but does do what i expect. the code plots, but complains that "No labeled objects found." any help would be much appreciate