-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
TST: add test of normed histogram with unequal bins #9564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This should be back-ported to 2.1.x along with #9121 |
lib/matplotlib/tests/test_axes.py
Outdated
rng = np.random.RandomState(57483) | ||
t = rng.randn(100) | ||
bins = [-3, -1, -0.5, 0, 1, 5] | ||
mpl_heights, _, _ = plt.hist(t, bins=bins, normed=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
normed
is deprecated!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
D'oh! Conflated things. Sorry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its very confusing!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Looks good unless the tests bork... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@meeseeksdev backport to 2.1.x |
|
@meeseeksdev backport to v2.1.x |
Backport PR #9564 on branch v2.1.x
Add test for #9557