File tree Expand file tree Collapse file tree 2 files changed +10
-14
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +10
-14
lines changed
Original file line number Diff line number Diff line change @@ -1524,14 +1524,15 @@ def legend(self, *args, **kwargs):
1524
1524
** kwargs )
1525
1525
# check for third arg
1526
1526
if len (extra_args ):
1527
- #cbook.warn_deprecated(
1528
- # "2.1",
1529
- # "Figure.legend will accept no more than two "
1530
- # "positional arguments in the future. Use "
1531
- # "'fig.legend(handles, labels, loc=location)' "
1532
- # "instead.")
1533
- kwargs ['loc' ] = extra_args [0 ]
1534
- extra_args = extra_args [1 :]
1527
+ # cbook.warn_deprecated(
1528
+ # "2.1",
1529
+ # "Figure.legend will accept no more than two "
1530
+ # "positional arguments in the future. Use "
1531
+ # "'fig.legend(handles, labels, loc=location)' "
1532
+ # "instead.")
1533
+ # kwargs['loc'] = extra_args[0]
1534
+ # extra_args = extra_args[1:]
1535
+ pass
1535
1536
l = mlegend .Legend (self , handles , labels , * extra_args , ** kwargs )
1536
1537
self .legends .append (l )
1537
1538
l ._remove_method = lambda h : self .legends .remove (h )
Original file line number Diff line number Diff line change @@ -1318,12 +1318,7 @@ def _get_legend_handles(axs, legend_handler_map=None):
1318
1318
1319
1319
def _get_legend_handles_labels (axs , legend_handler_map = None ):
1320
1320
"""
1321
- Return handles and labels for legend
1322
-
1323
- ``ax.legend()`` is equivalent to ::
1324
-
1325
- h, l = ax.get_legend_handles_labels()
1326
- ax.legend(h, l)
1321
+ Return handles and labels for legend, internal method.
1327
1322
1328
1323
"""
1329
1324
handles = []
You can’t perform that action at this time.
0 commit comments