Legend off to the right

Is there a built-in way for pylab to put the legend off to the right
of the plot. I need to have a fairly long legend (12 entries) and I
need to figure out what to do with it. (The plot is not as ugly as it
sounds with 12 things on it.)

Ryan

Try passing the "loc" kwarg, like loc=(1.05, 0) to the legend command.

plot([1,2])
legend(['line1'], loc=(1.05,0))

Darren

ยทยทยท

On Saturday 20 May 2006 13:48, Ryan Krauss wrote:

Is there a built-in way for pylab to put the legend off to the right
of the plot. I need to have a fairly long legend (12 entries) and I
need to figure out what to do with it. (The plot is not as ugly as it
sounds with 12 things on it.)

Ryan

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
Darren S. Dale, Ph.D.
Cornell High Energy Synchrotron Source
Cornell University
200L Wilson Lab
Rt. 366 & Pine Tree Road
Ithaca, NY 14853

dd55@...163...
office: (607) 255-9894
fax: (607) 255-9001