legend outside of the plot

Hi,

As far I understand this a plot is per default covering the more or less whole
space. Now, is it possible to position a legend outside of a plot, e.g. on
the right of the plot. "legend" offers to supply the loc-argument with a
tuple to do that, but that doesn't create more space and hence most legends
will appear truncated. The only solution I came up with is to limit the
plotting area (using "axes") and to position the legend manually. Is there an
alternative?

TIA
Cheers
Christian

Christian Meesters wrote:

Hi,

As far I understand this a plot is per default covering the more or less whole space. Now, is it possible to position a legend outside of a plot, e.g. on the right of the plot. "legend" offers to supply the loc-argument with a tuple to do that, but that doesn't create more space and hence most legends will appear truncated. The only solution I came up with is to limit the plotting area (using "axes") and to position the legend manually. Is there an alternative?

TIA
Cheers
Christian

I think you have to fiddle with the axes (see figlegend_demo.py in the
examples folder). As far as I know, there is no such thing like
gnuplot's "set key out" switch.

cheer,
steve

···

--
Random number generation is the art of producing pure gibberish as
quickly as possible.

If you are just creating graphic images you could always send the legend
to a different figure, and then print both figures to file. You could
then munge a layout together for whatever document you are creating.

···

On Fri, 2006-08-04 at 16:03 +0200, Christian Meesters wrote:

Hi,

As far I understand this a plot is per default covering the more or less whole
space. Now, is it possible to position a legend outside of a plot, e.g. on
the right of the plot. "legend" offers to supply the loc-argument with a
tuple to do that, but that doesn't create more space and hence most legends
will appear truncated. The only solution I came up with is to limit the
plotting area (using "axes") and to position the legend manually. Is there an
alternative?

TIA
Cheers
Christian

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Rick Albright
Senior Quantitvative Analyst
Indie Research, LLC
254 Witherspoon Street
Princeton, NJ 08542
(609)497-1030
ralbright@...1184...