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']) xplt.limits(0.,30.,0.,4.) xplt.eps('legend') Any comment or suggestion ? Nils
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 there. -Travis
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@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user
participants (2)
-
Nils Wagner -
Travis Oliphant