|
From: Matthias M. <Mat...@gm...> - 2008-03-17 12:00:23
|
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 |