-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Update hist() docstring following removal of normed kwarg. #14604
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
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.
🎉 for slowly making the API more sane!
|
very, very slowly :p |
lib/matplotlib/axes/_axes.py
Outdated
| If *density* is also ``True`` then the histogram is normalized such | ||
| that the last bin equals 1. | ||
| If *cumulative* is to less than 0 (e.g., -1), the direction of |
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.
| If *cumulative* is to less than 0 (e.g., -1), the direction of | |
| If *cumulative* is a number less than 0 (e.g., -1), the direction of |
That should be mentioned in the type. Just bool is plain confusing. Maybe we could also deprecate numbers in favor of "reversed", but that's for another PR.
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.
I now documented the type as bool or -1 which is technically too restrictive but more informative in practice, I think.
and change the default of density from None to False. (This doesn't change anything from the API PoV as we convert the kwarg using `bool` anyways, but the default was previously `None` for the sole purpose of detecting when both `normed` and `density` were both passed and error out in that case.)
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.
Leaving still open to see if anybody wants to comment on ngative number/-1.
|
@meeseeksdev backport to v3.1.x |
…al of normed kwarg.
|
This is documenting changes in #14244 which is targetting 3.2. |
and change the default of density from None to False. (This doesn't
change anything from the API PoV as we convert the kwarg using
boolanyways, but the default was previously
Nonefor the sole purpose ofdetecting when both
normedanddensitywere both passed and errorout in that case.)
PR Summary
PR Checklist