|
From: Chris W. <ch...@si...> - 2008-03-17 16:13:21
|
Hi Matthias,
Matthias Michler wrote:
> 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()
> ------------------------------------------------------------------------
Thanks for this. This is exactly what I was after except that the legend
now appears about 25% off the right hand of the screen or whatever I
save the figure to.
How can I have the legend as placed above but with the whole of it showing?
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
|