Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[ENH]: fill_between invert? #23768

Open
@mmakster

Description

@mmakster

Problem

It would be nice if matplotlib's fill_between could fill the regions below two intersecting lines and above both lines. It can fill between both lines, but I haven't found a simple way to invert the region obtained previously. The only workarounds I have are to create some extra functions, or to swap foreground and background, both of which are cumbersome. There is a related issue with figures and code on stackoverflow: https://stackoverflow.com/questions/73447993/matplotlib-fill-between-invert

r9AnS

Proposed solution

Adding a boolean "invert" argument to fill_between would be nice

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty: Hardhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesNew feature

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions