Skip to content

Commit

Permalink
FIX: default color handling in bar3D
Browse files Browse the repository at this point in the history
If color not specified (default to `None`), get the next color from the
axes color cycle.

closes #6989
  • Loading branch information
tacaswell committed Aug 27, 2016
1 parent 099f0af commit d8ca49c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/mpl_toolkits/mplot3d/axes3d.py
Expand Up @@ -2443,9 +2443,9 @@ def bar3d(self, x, y, z, dx, dy, dz, color=None,

facecolors = []
if color is None:
# no color specified
facecolors = [None] * len(x)
elif len(color) == len(x):
color = [self._get_lines.get_next_color()]

if len(color) == len(x):
# bar colors specified, need to expand to number of faces
for c in color:
facecolors.extend([c] * 6)
Expand Down

0 comments on commit d8ca49c

Please sign in to comment.