Re: [Matplotlib-users] unwanted label clipping in gallery

2010-10-29 Thread Paul Ivanov
Alan G Isaac, on 2010-10-28 21:29, wrote: > On 10/27/2010 8:21 PM, Paul Ivanov wrote: > >def onelegend_twinaxes(axis,twin): > >#make a joint axis legend > >lines = twin.get_lines() > >lines.extend(axis.get_lines()) > >labels = [l.get_label() for l in lines] > >

Re: [Matplotlib-users] unwanted label clipping in gallery

2010-10-28 Thread Alan G Isaac
On 10/27/2010 9:56 PM, Ryan May wrote: > # Make the y-axis label and tick labels match the line color. > ax1.set_ylabel('exp', color='b') > for tl in ax1.get_yticklabels(): > tl.set_color('b') > Thanks. This is cool, but I think I find the colored tick labels visually distracting. Isn't a

Re: [Matplotlib-users] unwanted label clipping in gallery

2010-10-28 Thread Alan G Isaac
On 10/27/2010 8:21 PM, Paul Ivanov wrote: >def onelegend_twinaxes(axis,twin): >#make a joint axis legend >lines = twin.get_lines() >lines.extend(axis.get_lines()) >labels = [l.get_label() for l in lines] >return axis.legend(lines, labels) That works. >

Re: [Matplotlib-users] unwanted label clipping in gallery

2010-10-28 Thread Alan G Isaac
On 10/27/2010 9:56 PM, Ryan May wrote: > Any idea how the clipped figure problem > was solved in the past? http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg18632.html http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg18537.html fwiw, Alan ---

Re: [Matplotlib-users] unwanted label clipping in gallery

2010-10-27 Thread Ryan May
On Wed, Oct 27, 2010 at 5:31 PM, Alan G Isaac wrote: > Here is another example of unwanted text clipping > in the gallery: > http://matplotlib.sourceforge.net/examples/api/two_scales.html#api-two-scales > (Both y axis labels are clipped.) > > I also think the example would be more complete if it >

Re: [Matplotlib-users] unwanted label clipping in gallery

2010-10-27 Thread Paul Ivanov
Alan G Isaac, on 2010-10-27 18:31, wrote: > Here is another example of unwanted text clipping > in the gallery: > http://matplotlib.sourceforge.net/examples/api/two_scales.html#api-two-scales > (Both y axis labels are clipped.) > > I also think the example would be more complete if it > 1. set a

[Matplotlib-users] unwanted label clipping in gallery

2010-10-27 Thread Alan G Isaac
Here is another example of unwanted text clipping in the gallery: http://matplotlib.sourceforge.net/examples/api/two_scales.html#api-two-scales (Both y axis labels are clipped.) I also think the example would be more complete if it 1. set a 270 degree rotation on the second ylabel, and 2. showed h