Skip to content

Commit 8439681

Browse files
skirpichevMeeseeksDev[bot]
authored and
MeeseeksDev[bot]
committed
Backport PR #10030: Fix using .get_color() and friends in labels handling
1 parent d83473d commit 8439681

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/legend.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1336,17 +1336,17 @@ def _in_handles(h, l):
13361336
if type(f_h) != type(h):
13371337
continue
13381338
try:
1339-
if f_h.get_color() != h.get_color():
1339+
if (f_h.get_color() != h.get_color()).any():
13401340
continue
13411341
except AttributeError:
13421342
pass
13431343
try:
1344-
if f_h.get_facecolor() != h.get_facecolor():
1344+
if (f_h.get_facecolor() != h.get_facecolor()).any():
13451345
continue
13461346
except AttributeError:
13471347
pass
13481348
try:
1349-
if f_h.get_edgecolor() != h.get_edgecolor():
1349+
if (f_h.get_edgecolor() != h.get_edgecolor()).any():
13501350
continue
13511351
except AttributeError:
13521352
pass

0 commit comments

Comments
 (0)