The Wayback Machine - https://web.archive.org/web/20201016120001/https://github.com/matplotlib/matplotlib/pull/16471
Skip to content
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

ENH/API: allow hist.bins to follow the numpy default #16471

Draft
wants to merge 2 commits into
base: master
from

Conversation

@tacaswell
Copy link
Member

@tacaswell tacaswell commented Feb 11, 2020

Currently, we default to hist.bins=10 which happens to match the numpy
default. However, there is some discussion about changing the numpy
default. This adds the option of fall back to "what numpy does by default"
by default.

Changing the default currently has no effect, as the numpy default is
the same as our ould default, but will future-proof us to follow numpy
if / when they change their default.

  • Has Pytest style unit tests
  • Code is Flake 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
tacaswell added 2 commits Feb 11, 2020
Currently, we default to hist.bins=10 which happens to match
the numpy default.  However, there is some discussion about changing
the numpy default.  This adds the option of fall back to "what numpy
does by default" by default.
This will have no effect, as the numpy default is currently the same
as our default, but will future-proof us to follow numpy if / when
they change their default.
Copy link
Contributor

@jklymak jklymak left a comment

Overall this seems fine but needs docs. I think this needs a what’s new? And the new kwarg value need an entry in the docstring. Probably the template comment needs to be changed

@amueller
Copy link
Contributor

@amueller amueller commented Feb 14, 2020

Ok so this changes the default as well, right?

@QuLogic QuLogic added the Needs rebase label May 5, 2020
@tacaswell tacaswell modified the milestones: v3.3.0, v3.4.0 May 21, 2020
@tacaswell
Copy link
Member Author

@tacaswell tacaswell commented May 21, 2020

Punting to 3.4 as I don't think this is urgent (as I don't think there is a pending change to the numpy default coming).

@jklymak jklymak marked this pull request as draft Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.