Movatterモバイル変換


[0]ホーム

URL:


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

Replace 'normed' kwarg to hist by 'density' in tests and docs.#10258

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
anntzer wants to merge1 commit intomatplotlib:masterfromanntzer:nonormed

Conversation

anntzer
Copy link
Contributor

PR Summary

handles#10200 (comment)

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@@ -2932,7 +2932,7 @@ def test_hist_stacked_normed():
d2 = np.linspace(0, 10, 50)
fig = plt.figure()
ax = fig.add_subplot(111)
ax.hist((d1, d2), stacked=True, 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.

I think this should stay as it is, because we should still be testing thatnormed works until it is removed.

Copy link
Member

Choose a reason for hiding this comment

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

In that case, shouldn't the test have two forms, one for 'normed' and the other for 'density'? At a more general level, we never have tested everything, and never will--there are too many possible combinations. We need to concentrate on the most useful tests, putting our resources, and those of the CI services, where they will be most effective in improving mpl. Testing that a deprecated kwarg still works seems very low priority, doesn't it? The time of deprecation seems like a perfectly reasonable time to switch a test to the non-deprecated alternative.

Copy link
Member

Choose a reason for hiding this comment

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

  • There is a test directly below this one fordensity.
  • Sure we've never tested everything, but we shouldaim to test everything. This test definitely isn't a CI bottleneck.
  • In my opinion, something being deprecated means it is still supported, but there are plans for it to be removed. If it's supported, it should be tested.

I'm not going to block on removing thenormed test, but I am -2 on it.

Copy link
Member

Choose a reason for hiding this comment

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

Aiming to test everything doesn't make sense to me, for the reason stated above.

Copy link
Member

@efiringefiring left a comment

Choose a reason for hiding this comment

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

I like it; but I acknowledge the disagreement of@dstansby.

@anntzer
Copy link
ContributorAuthor

At least the docs should be fixed, I basically don't care about what we do with the tests (but should suppress the warnings if we don't change them).

eric-wieser reacted with thumbs up emoji

@tacaswell
Copy link
Member

I think@dstansby has a good point here. Can we keep the commit from#10200 for the test file (assuming tests pass, it looks like they are all failing over there) and everything else from this PR?

@tacaswelltacaswell added this to thev2.2 milestoneJan 17, 2018
@anntzer
Copy link
ContributorAuthor

Feel free to do your own mix and match... or I can rebase after#10200 is merged.

@QuLogic
Copy link
Member

Oh, didn't know about this. Since#10200 is merged and#10385 took care of the examples, I guess we don't need this PR.

@QuLogicQuLogic modified the milestones:v2.2,unassignedFeb 10, 2018
@anntzeranntzer deleted the nonormed branchFebruary 10, 2018 17:19
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@dstansbydstansbydstansby left review comments

@efiringefiringefiring approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

6 participants
@anntzer@tacaswell@QuLogic@efiring@dstansby@jklymak

[8]ページ先頭

©2009-2025 Movatter.jp