GeezerVison is showing github.com — Bug Fix: Normalize kwargs for Histogram by TheSkyentist · Pull Request #29552 · matplotlib/matplotlib
Conversation
PR summary
Closes #28884 by normalizing kwargs for hist. The behavior of shortened options, such as ls and ec, now behave as expected.
pyplot.hist([1,2,3,4,5],bins=5,histtype='step',ls=':')
pyplot.savefig('test.pdf')
now produces test.pdf
First brought to my attention by @ecrohr
PR checklist
- new and changed code is tested
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
hirohira9119 reacted with thumbs up emoji
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.
Thank you for opening your first PR into Matplotlib!
If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks.
You can also join us on gitter for real-time discussion.
For details on testing, writing docs, and our review process, please see the developer guide
We strive to be a welcoming and open project. Please follow our Code of Conduct.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
I believe this is the issue this would close? #28884
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Good catch! I made this draft while writing the issue. I’ll update the info.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Does this fully close #28884? It doesn't add plurals, and I think we didn't yet make a decision in #28884 on whether we even wanted to add plurals.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
You are right and that's ok. The issue itself is not decided whether we actually want plurals. This implements the obvious and uncontroversial part of the issue.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks @TheSkyentist! Congratulations on your first PR to Matplotlib 🎉 We hope to hear from you again.
|
TheSkyentist reacted with heart emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
prafulgulani
pushed a commit
to prafulgulani/matplotlib
that referenced
this pull request
Feb 22, 2025
* Normalize kwargs for hist
* Avoid shadowing the builtin first!
Co-authored-by: Elliott Sales de Andrade <[email protected]>
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
QuLogic
added a commit
that referenced
this pull request
Mar 27, 2025
…552-on-v3.10.x
Backport PR #29552 on branch v3.10.x (Bug Fix: Normalize kwargs for Histogram)
Reviewers
QuLogic
QuLogic approved these changes
timhoffm
timhoffm approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|