Skip to content

Commit 1d6b55d

Browse files
committed
Figure.legend does not flatten the input handle list
1 parent 46d0db5 commit 1d6b55d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/matplotlib/figure.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,6 @@ def legend(self, handles, labels, *args, **kwargs):
992992
993993
.. plot:: mpl_examples/pylab_examples/figlegend_demo.py
994994
"""
995-
handles = flatten(handles)
996995
l = Legend(self, handles, labels, *args, **kwargs)
997996
self.legends.append(l)
998997
return l

0 commit comments

Comments
 (0)