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 49e3940

Browse filesBrowse files
committed
FIX: default color handling in bar3D
If color not specified (default to `None`), get the next color from the axes color cycle. closes #6989
1 parent 099f0af commit 49e3940
Copy full SHA for 49e3940

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+3
-3
lines changed

‎lib/mpl_toolkits/mplot3d/axes3d.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/mplot3d/axes3d.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2443,9 +2443,9 @@ def bar3d(self, x, y, z, dx, dy, dz, color=None,
24432443

24442444
facecolors = []
24452445
if color is None:
2446-
# no color specified
2447-
facecolors = [None] * len(x)
2448-
elif len(color) == len(x):
2446+
color = self._get_lines.get_next_color()
2447+
2448+
if len(color) == len(x):
24492449
# bar colors specified, need to expand to number of faces
24502450
for c in color:
24512451
facecolors.extend([c] * 6)

0 commit comments

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