Skip to content

Commit 3418bad

Browse files
authored
Merge pull request matplotlib#24811 from story645/legend
removed casting handles to list in legend
2 parents edfd3b4 + 4c14356 commit 3418bad

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/matplotlib/legend.py

-1
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,6 @@ def val_or_rc(val, rc_name):
448448
labels.reverse()
449449
handles.reverse()
450450

451-
handles = list(handles)
452451
if len(handles) < 2:
453452
ncols = 1
454453
self._ncols = ncols if ncols != 1 else ncol

0 commit comments

Comments
 (0)