[SciPy-user] xplt.legend

Nils Wagner nwagner at mecha.uni-stuttgart.de
Thu Dec 16 02:39:05 CST 2004


Travis Oliphant wrote:

> 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).
>
It would be nice if the legend could be placed outside the plot. (to the 
left or the right as default).

Nils

> You are probably clicking near the top, causing the legend to be 
> placed there.
>
> -Travis
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user



 




More information about the SciPy-user mailing list