Re: [Matplotlib-users] Legend outside the plot

2011-03-08 Thread Yuri D'Elia
On Tue, 8 Mar 2011 02:35:52 +0900 Jae-Joon Lee wrote: > On Mon, Mar 7, 2011 at 8:22 PM, Yuri D'Elia wrote: > > With matplotlib, I have to do the following: > > > > legend(bbox_to_anchor=(1, 1 + ?), loc=2) > > > > but how do I calculate the vertical location? > > Maybe you want to try something

Re: [Matplotlib-users] Legend outside the plot

2011-03-07 Thread Jae-Joon Lee
On Mon, Mar 7, 2011 at 8:22 PM, Yuri D'Elia wrote: > With matplotlib, I have to do the following: > > legend(bbox_to_anchor=(1, 1 + ?), loc=2) > > but how do I calculate the vertical location? Maybe you want to try something like leg = legend([l1], ["Test"], borderaxespad=0, bbox_to

Re: [Matplotlib-users] Legend outside the plot

2011-03-07 Thread Yuri D'Elia
On Mon, 7 Mar 2011 09:08:29 -0600 Benjamin Root wrote: > Matplotlib is designed to give you maximum control over the figure elements > while still maintaining sensible defaults. This is helpful in some cases, > and not so helpful in others. In your case of placing a legend outside an > axes, ca

Re: [Matplotlib-users] Legend outside the plot

2011-03-07 Thread Benjamin Root
On Mon, Mar 7, 2011 at 5:22 AM, Yuri D'Elia wrote: > Hi everyone. I'm a newbye to matplotlib, so excuse my naive questions. I > have a large experience with gnuplot and asymptote, and I only recently > started to experiment with matplotlib. > > Some background: I'm trying to use matplotlib mostly

[Matplotlib-users] Legend outside the plot

2011-03-07 Thread Yuri D'Elia
Hi everyone. I'm a newbye to matplotlib, so excuse my naive questions. I have a large experience with gnuplot and asymptote, and I only recently started to experiment with matplotlib. Some background: I'm trying to use matplotlib mostly for complex plots with a lot of data. Gnuplot is usually f

Re: [Matplotlib-users] legend outside the plot

2007-08-29 Thread Bernhard Voigt
Here's a legend function which allows you to specify loc='outer right'. The part for 'outer left' doesn't work. It basically wrappes the pylab.legendmethod, it rescales the plot and sets the location of the legend to coordinates outside of the current axes. def legend(*args, **kwargs): """

[Matplotlib-users] legend outside the plot

2007-08-27 Thread Wolfgang Kerzendorf
Is there any way to display a legend in a second window or outside the plot? thanks in advance Wolfgang - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search l