Skip to content

Allow all valid hist.bins strings to be set in the rcparams #12908

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 1 commit into from
Dec 1, 2018

Conversation

Christopher-Bradshaw
Copy link
Contributor

PR Summary

Currently the one string that can be set in the rcParams is "auto". However there are a number of other strings that can be passed to the bins argument of hist. I think those should also be allowed to be set in the rcParams.

Also note in the docs one of the allowed strings 'sturges' was repeated. I've removed the repeat.

Apologies if I have made any process mistakes - this is my first PR to matplotlib. I also didn't get tests running locally but if they fail here I will do that and fix any issues.

PR Checklist

  • 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

@timhoffm
Copy link
Member

timhoffm commented Dec 1, 2018

Thanks for the PR and congratulations on your first contribution to matplotlib! Hoping to see you back some time.

@timhoffm timhoffm merged commit 2c1cd6b into matplotlib:master Dec 1, 2018
@QuLogic QuLogic added this to the v3.1 milestone Dec 2, 2018
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.

4 participants