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

Skip to content

Commit 280ce37

Browse files
committed
Handled None array passing to color
Handled passing None list
1 parent 94bebac commit 280ce37

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 np.any(np.equal(np.atleast_1d(color), None)):
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)