We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b49cd67 commit 2a149cbCopy full SHA for 2a149cb
lib/matplotlib/legend.py
@@ -604,17 +604,14 @@ def __init__(
604
if isinstance(color, np.ndarray):
605
if color.size == 0:
606
continue
607
- elif (
608
- color.shape[0] == 1
609
- or np.isclose(color, color[0]).all()
610
- ):
+ elif (color.shape[0] == 1 or np.isclose(color, color[0]).all()):
611
text.set_color(color[0])
612
else:
613
pass
614
elif cbook._str_lower_equal(color, 'none'):
615
616
elif mpl.colors.to_rgba(color)[3] == 0:
617
- continue
+ continue
618
619
text.set_color(color)
620
break
0 commit comments