JJ,
The workaround works. Thanks.
-Sterling
On Oct 17, 2011, at 6:58PM, Jae-Joon Lee wrote:
> Meanwhile, you may do
>
> from matplotlib.legend import Legend
> l = Legend(fig, h, l, loc='lower right')
> fig.legends.append(l)
>
> This should be equivalent to fig.legend(h,l,loc='lower right').
>
Somehow, Figure.legend flattens the given handle list and this is the
cause of the problem.
https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/figure.py#L994
Does anyone know why this is necessary?
I just filed a pull request to remove this.
https://github.com/matplotlib/matplot
Let me first say that I appreciate the work that the developers have put into
matplotlib. You're doing a great job.
I have filed a bug report at
https://github.com/matplotlib/matplotlib/issues/533
wherein I post the following
Consider:
from pylab import *
x = arange(0,1,.01)
y = x**2
fig =