Re: [Matplotlib-users] vertical padding in legend

2008-10-05 Thread Eric Firing
Jae-Joon Lee wrote: >> Done, except that it just raises a warning, and still works with the old >> kwarg. The new kwarg is "borderpad"; it is used if pad==0, which is the new >> rc default. I set the default borderpad=0.5. >> >> There is still too much other positioning in legend that is based on

Re: [Matplotlib-users] vertical padding in legend

2008-10-05 Thread Jae-Joon Lee
> > Done, except that it just raises a warning, and still works with the old > kwarg. The new kwarg is "borderpad"; it is used if pad==0, which is the new > rc default. I set the default borderpad=0.5. > > There is still too much other positioning in legend that is based on axes > units. I brief

Re: [Matplotlib-users] vertical padding in legend

2008-10-04 Thread Eric Firing
John Hunter wrote: > On Tue, Sep 30, 2008 at 5:07 PM, Jae-Joon Lee <[EMAIL PROTECTED]> wrote: > >> The problem is already well explained by Eric. And my solution is to >> interpret the legend.pad as a fraction of the textsize (pad=0.3 seems >> to work fine in my eyes). Note that this breaks the ba

Re: [Matplotlib-users] vertical padding in legend

2008-10-04 Thread John Hunter
On Tue, Sep 30, 2008 at 5:07 PM, Jae-Joon Lee <[EMAIL PROTECTED]> wrote: > The problem is already well explained by Eric. And my solution is to > interpret the legend.pad as a fraction of the textsize (pad=0.3 seems > to work fine in my eyes). Note that this breaks the backward > compatibility. I

Re: [Matplotlib-users] vertical padding in legend

2008-10-04 Thread Christopher Brown
Hi Jae-Joon, JL> I just had a quick look at this problem. And I'm posting a quick JL> solution in case Christoper haven't dig it yet. My figure looks great with these changes. Thank you very much! -- Christopher Brown, Ph.D. Department of Speech and Hearing Science Arizona State University ---

Re: [Matplotlib-users] vertical padding in legend

2008-10-04 Thread Eric Firing
Christopher Brown wrote: > Hi List, > > Attached is a closeup of two legends on a 2-panel figure. The first > legend has 10 plots listed, the second has 1. I have set each legend > identically: loc='upper right', pad=.3, handlelen=.1, handletextsep=.05. > But it seems that while the horizontal pad

Re: [Matplotlib-users] vertical padding in legend

2008-09-30 Thread Jae-Joon Lee
Hello, I just had a quick look at this problem. And I'm posting a quick solution in case Christoper haven't dig it yet. Index: lib/matplotlib/legend.py === --- lib/matplotlib/legend.py(revision 6138) +++ lib/matplotlib/legend.py

Re: [Matplotlib-users] vertical padding in legend

2008-09-30 Thread Eric Firing
Christopher Brown wrote: > Sorry, meant to send to the list... > > Hi Eric, > > EF> > the vertical padding is too large in the first > EF> > legend, and too small in the second. > EF> > EF> This looks to me like a design flaw: the pad is "fractional" > EF> (fraction of legend box size), when log