8000 FIX: default color handling in bar3D · matplotlib/matplotlib@49e3940 · GitHub
[go: up one dir, main page]

Skip to content

Commit 49e3940

Browse 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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines 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