Hello Chris,

I'm not sure if there was an example in matplotlib, but the following works 
for me:
---------------------------------------------------------------------
from pylab import *
figure()
subplot(111)
subplots_adjust(right=0.7)
plot(arange(10), label='linear')
plot(arange(10)**2, label='quadratic')
legend(loc=(1.1,0.5))
show()
------------------------------------------------------------------------

I hope this is useful to you.

best regards
Matthias

On Monday 17 March 2008 12:42, Chris Withers wrote:
> Hi All,
>
> How would I go about placing the legend outside the plot area?
>
> All the parameters to legend seem to place the legend somewhere within
> the plot and I'd like to place it outside the plot, either above, below
> or, most commonly, to the right, in the same way as the Excel legend
> positions allow.
>
> cheers,
>
> Chris

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to