Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Bug]: Stackplot does not passfacecolor(s) correctly to fill_between #30804

Open
@rbaardmanWKR

Description

@rbaardmanWKR

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp