[SciPy-user] xplt.legend

Travis Oliphant oliphant at ee.byu.edu
Wed Dec 15 23:06:59 CST 2004

Nils Wagner wrote:

> Hi all,
> Is it somehow possible to position the legend in a more convenient 
> arrangement (see legend.eps for details).
> xplt.plot(betar,lp[:,0],betar,lp[:,1],betar,lp[:,2],betar,lp[:,3],betar,lp[:,4],betar,lp[:,5],betar,lp[:,6],betar,lp[:,7],betar,lp[:,8],betar,lp[:,9]) 
> xplt.xlabel('!b_0')
> xplt.ylabel('!m_1')
> xplt.legend(['!a=8','!a=2','!a=0.5','!a=0.125','!a=0','!a=-0.05','!a=-0.1','!a=-0.2','!a=-0.4','!a=-2']) 

The legend is placed depending on where you click in the window (yes, 
some defaults should be added --- but haven't yet).

You are probably clicking near the top, causing the legend to be placed 


More information about the SciPy-user mailing list