Matthias Michler wrote:
> - I think this could be a good improvement, but i'm not sure if it is easy to
> expand the functionality of the axes-legend (pyplot.legend or ax.legend) to
> that of a figure-legend(pyplot.figlegend or fig.legend with fig as a figure
> instance) without missing somethin
On Tuesday 18 March 2008 10:50, Chris Withers wrote:
> Eric Firing wrote:
> > It sounds like what you want it the pyplot figlegend command:
> > def figlegend(handles, labels, loc, **kwargs):
>
> This feels like what I should be wanting except:
>
> - why does it need explicit parameters? why can't i
Eric Firing wrote:
> It sounds like what you want it the pyplot figlegend command:
> def figlegend(handles, labels, loc, **kwargs):
This feels like what I should be wanting except:
- why does it need explicit parameters? why can't it pick up its lines
and labels automatically, like legend does?
It sounds like what you want it the pyplot figlegend command:
def figlegend(handles, labels, loc, **kwargs):
"""
Place a legend in the figure. Labels are a sequence of
strings, handles is a sequence of line or patch instances, and
loc can be a string r an integer specifying the
Matthias Michler wrote:
> sorry I don't understand what you are exactly looking for. Maybe you could
> explain it once more.
Well, what you provided was pretty close, it's just that the legend was
partly placed outside the figure...
> In general I think all one can do is to play around with th
Hi Chris,
sorry I don't understand what you are exactly looking for. Maybe you could
explain it once more.
In general I think all one can do is to play around with the parameters
in 'subplots_adjust' and the location in 'legend' to get the best result.
I'm not an expert but I think there's no
Hi Matthias,
Matthias Michler wrote:
> I'm not sure if there was an example in matplotlib, but the following works
> for me:
> -
> from pylab import *
> figure()
> subplot(111)
> subplots_adjust(right=0.7)
> plot(arange(10), labe
Hello Chris,
I'm not sure if there was an example in matplotlib, but the following works
for me:
-
from pylab import *
figure()
subplot(111)
subplots_adjust(right=0.7)
plot(arange(10), label='linear')
plot(arange(10)**2, label='q
Hi All,
How would I go about placing the legend outside the plot area?
All the parameters to legend seem to place the legend somewhere within
the plot and I'd like to place it outside the plot, either above, below
or, most commonly, to the right, in the same way as the Excel legend
positions a