Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 969493a

Browse files
committed
Handled None array passing to color
1 parent f2932c1 commit 969493a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7014,7 +7014,7 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
70147014
if len_xi:
70157015
input_empty = False
70167016

7017-
if color is None:
7017+
if not any(np.atleast_1d(color)):
70187018
colors = [self._get_lines.get_next_color() for i in range(nx)]
70197019
else:
70207020
colors = mcolors.to_rgba_array(color)

0 commit comments

Comments
 (0)