Re: [Matplotlib-users] Legend placement on graphs with fill_between

2010-02-12 Thread Geoff Bache
On Thu, Feb 11, 2010 at 4:58 PM, John Hunter wrote: > On Thu, Feb 11, 2010 at 9:43 AM, Geoff Bache wrote: >> >> Hi all, >> >> I'm trying to generate graphs from my test results, with regions >> coloured with succeeded and failing tests. It nearly works, but I have >> the following problem. I am p

Re: [Matplotlib-users] Legend placement on graphs with fill_between

2010-02-12 Thread Geoff Bache
Many thanks for the suggestions, will try these out today. Incidentally, it looks like there is an interesting bug in the mail archive software. Viewing my original message there I can see that it has removed all instances of the combination "pre" (that's p then r then e if it eats this too!). It

Re: [Matplotlib-users] Legend placement on graphs with fill_between

2010-02-11 Thread Jae-Joon Lee
Or, you may fool the algorithm to find the best location by adding invisible lines. For example, axessubplot4.set_autoscale_on(False) l1, = axessubplot4.plot([4, 5], [8, 18]) l1.set_visible(False) axessubplot4.set_autoscale_on(True) Regards, -JJ On Thu, Feb 11, 2010 at 10:58 AM, John Hunter w

Re: [Matplotlib-users] Legend placement on graphs with fill_between

2010-02-11 Thread John Hunter
On Thu, Feb 11, 2010 at 9:43 AM, Geoff Bache wrote: > > Hi all, > > I'm trying to generate graphs from my test results, with regions > coloured with succeeded and failing tests. It nearly works, but I have > the following problem. I am providing the data with fill_between, which > returns PolyColl

[Matplotlib-users] Legend placement on graphs with fill_between

2010-02-11 Thread Geoff Bache
Hi all, I'm trying to generate graphs from my test results, with regions coloured with succeeded and failing tests. It nearly works, but I have the following problem. I am providing the data with fill_between, which returns PolyCollection objects which cannot be provided to a legend. So I use