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

Skip to content

Commit 6045296

Browse files
authored
Merge pull request #12581 from timhoffm/fix-hist-error-message
Fix hist() error message
2 parents 36bc620 + b75b18b commit 6045296

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6549,7 +6549,7 @@ def hist(self, x, bins=None, range=None, density=None, weights=None,
65496549
if len(color) != nx:
65506550
error_message = (
65516551
"color kwarg must have one color per data set. %d data "
6552-
"sets and %d colors were provided" % (len(color), nx))
6552+
"sets and %d colors were provided" % (nx, len(color)))
65536553
raise ValueError(error_message)
65546554

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

0 commit comments

Comments
 (0)