Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2a149cb

Browse files
minor reformatting to reduce line wrapping
1 parent b49cd67 commit 2a149cb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

‎lib/matplotlib/legend.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -604,17 +604,14 @@ def __init__(
604604
if isinstance(color, np.ndarray):
605605
if color.size == 0:
606606
continue
607-
elif (
608-
color.shape[0] == 1
609-
or np.isclose(color, color[0]).all()
610-
):
607+
elif (color.shape[0] == 1 or np.isclose(color, color[0]).all()):
611608
text.set_color(color[0])
612609
else:
613610
pass
614611
elif cbook._str_lower_equal(color, 'none'):
615612
continue
616613
elif mpl.colors.to_rgba(color)[3] == 0:
617-
continue
614+
continue
618615
else:
619616
text.set_color(color)
620617
break

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /