Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Description
Bug summary
I'm getting an error when specifyingfacecolor orfacecolors for stackplot. Passingcolor oredgecolor does work however.
Code for reproduction
frommatplotlibimportpyplotaspltx= [0,1,2]y= [10,20,30]# Gives error "got multiple values for keyword argument 'facecolor'"plt.stackplot(x,y,facecolor='red')# Gives error "Got both 'facecolor' and 'facecolors'"plt.stackplot(x,y,facecolors='red')
Actual outcome
When specifyingfacecolor for stackplot, I get the error: "TypeError: matplotlib.axes._axes.Axes.fill_between() got multiple values for keyword argument 'facecolor'".
When specyfingfacecolors for stackplot, I get the error: "TypeError: Got both 'facecolor' and 'facecolors', which are aliases of one another".
Expected outcome
It should pass thefacecolor(s) tofill_between. How it does that exactly is open for interpretation: I would prefer if it would pass a list of colors as individual colors to subsequentfill_between calls (similar to how stackplot already interprets thecolor argument)
Additional information
No response
Operating system
macOS 15.7.2
Matplotlib Version
3.9.4
Matplotlib Backend
macosx
Python version
3.9.6
Jupyter version
No response
Installation
pip