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

Skip to content

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

Merged
merged 2 commits into from
Oct 25, 2017

Conversation

jakevdp
Copy link
Contributor

@jakevdp jakevdp commented Oct 24, 2017

Add test for #9557

@jakevdp
Copy link
Contributor Author

jakevdp commented Oct 24, 2017

This should be back-ported to 2.1.x along with #9121

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

normed is deprecated!

Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its very confusing!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@jklymak
Copy link
Member

jklymak commented Oct 25, 2017

Looks good unless the tests bork...

Copy link
Member

@dstansby dstansby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dstansby dstansby added this to the v2.2 milestone Oct 25, 2017
@dstansby dstansby merged commit ad616c6 into matplotlib:master Oct 25, 2017
@tacaswell tacaswell modified the milestones: v2.2, v2.1.1 Oct 25, 2017
@tacaswell
Copy link
Member

@meeseeksdev backport to 2.1.x

@QuLogic
Copy link
Member

QuLogic commented Oct 25, 2017

v2.1.x?

@tacaswell
Copy link
Member

@meeseeksdev backport to v2.1.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants