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

Appearance settings

Commit fc3e07c

Browse filesBrowse files
committed
Fix edgecolor being only applied to first bar.
1 parent ad730d1 commit fc3e07c
Copy full SHA for fc3e07c

File tree

Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2108,9 +2108,10 @@ def bar(self, *args, **kwargs):
21082108
if edgecolor is None:
21092109
edgecolor = itertools.repeat(None)
21102110
else:
2111-
edgecolor = itertools.chain(mcolors.to_rgba_array(edgecolor),
2112-
# Fallback if edgecolor == "none".
2113-
itertools.repeat([0, 0, 0, 0]))
2111+
edgecolor = itertools.chain(
2112+
itertools.cycle(mcolors.to_rgba_array(edgecolor)),
2113+
# Fallback if edgecolor == "none".
2114+
itertools.repeat([0, 0, 0, 0]))
21142115

21152116
# lets do some conversions now since some types cannot be
21162117
# subtracted uniformly

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.