8000 Bug Fix: Normalize kwargs for Histogram by TheSkyentist · Pull Request #29552 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Bug Fix: Normalize kwargs for Histogram #29552

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 3 commits into from
Feb 14, 2025
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -6997,6 +6997,8 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
(``plt.stairs(*np.histogram(data))``), or by setting *histtype* to
'step' or 'stepfilled' rather than 'bar' or 'barstacked'.
"""
kwargs = cbook.normalize_kwargs(kwargs, mpatches.Patch)

# Avoid shadowing the builtin.
bin_range = range
from builtins import range
Expand Down
0