Skip to content

Commit 067b77c

Browse files
Bug Fix: Normalize kwargs for Histogram (matplotlib#29552)
* Normalize kwargs for hist * Avoid shadowing the builtin first! Co-authored-by: Elliott Sales de Andrade <[email protected]>
1 parent 3fa730d commit 067b77c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/axes/_axes.py

+2
Original file line numberDiff line numberDiff line change
@@ -7018,6 +7018,8 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
70187018
bin_range = range
70197019
from builtins import range
70207020

7021+
kwargs = cbook.normalize_kwargs(kwargs, mpatches.Patch)
7022+
70217023
if np.isscalar(x):
70227024
x = [x]
70237025

0 commit comments

Comments
 (0)