Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 153bacf

Browse files
authored
Merge pull request matplotlib#12593 from meeseeksmachine/auto-backport-of-pr-12581-on-v3.0.x
Backport PR matplotlib#12581 on branch v3.0.x (Fix hist() error message)
2 parents 77fa285 + bfc3bd1 commit 153bacf

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)

AltStyle によって変換されたページ (->オリジナル) /