Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Labels
Milestone
Description
Bug summary
The docs forhist
state
**kwargs `~matplotlib.patches.Patch` properties. The following properties additionally accept a sequence of values corresponding to the datasets in *x*: *edgecolors*, *facecolors*, *lines*, *linestyles*, *hatches*.
but this does not match actual behavior
Code for reproduction
frompylabimport*hist(randn(100),facecolor="red")# workshist(randn(100),fc="red")# silently does nothinghist(randn(100),facecolors="red")# crashes (Rectangle.set() got an unexpected keyword argument 'facecolors')# and likewise for edgecolor(s)
Actual outcome
See above.
Expected outcome
At least the documentation and the behavior should match. Bonus points if all three kwarg forms (facecolor/fc/facecolors) are supported.
Additional information
No response
Operating system
any
Matplotlib Version
3.10.0.dev645+gcb9cf3bbb1
Matplotlib Backend
any
Python version
3.12.2
Jupyter version
no
Installation
git checkout