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

Skip to content

Commit bfc3bd1

Browse files
jklymakMeeseeksDev[bot]
authored and
MeeseeksDev[bot]
committed
Backport PR #12581: Fix hist() error message
1 parent 77fa285 commit bfc3bd1

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
@@ -6550,7 +6550,7 @@ def hist(self, x, bins=None, range=None, density=None, weights=None,
65506550
if len(color) != nx:
65516551
error_message = (
65526552
"color kwarg must have one color per data set. %d data "
6553-
"sets and %d colors were provided" % (len(color), nx))
6553+
"sets and %d colors were provided" % (nx, len(color)))
65546554
raise ValueError(error_message)
65556555

65566556
# If bins are not specified either explicitly or via range,

0 commit comments

Comments
 (0)