Skip to content

Commit c24d221

Browse files
cyphercodesmeeseeksmachine
authored andcommitted
Backport PR matplotlib#31898: fix: allow array-like fill_between where masks
1 parent cb4b0b0 commit c24d221

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/matplotlib/axes/_axes.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ class Axes(_AxesBase):
479479
x: ArrayLike,
480480
y1: ArrayLike | float,
481481
y2: ArrayLike | float = ...,
482-
where: Sequence[bool] | None = ...,
482+
where: ArrayLike | None = ...,
483483
interpolate: bool = ...,
484484
step: Literal["pre", "post", "mid"] | None = ...,
485485
*,
@@ -491,7 +491,7 @@ class Axes(_AxesBase):
491491
y: ArrayLike,
492492
x1: ArrayLike | float,
493493
x2: ArrayLike | float = ...,
494-
where: Sequence[bool] | None = ...,
494+
where: ArrayLike | None = ...,
495495
step: Literal["pre", "post", "mid"] | None = ...,
496496
interpolate: bool = ...,
497497
*,

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3497,7 +3497,7 @@ def fill_between(
34973497
x: ArrayLike,
34983498
y1: ArrayLike | float,
34993499
y2: ArrayLike | float = 0,
3500-
where: Sequence[bool] | None = None,
3500+
where: ArrayLike | None = None,
35013501
interpolate: bool = False,
35023502
step: Literal["pre", "post", "mid"] | None = None,
35033503
*,
@@ -3522,7 +3522,7 @@ def fill_betweenx(
35223522
y: ArrayLike,
35233523
x1: ArrayLike | float,
35243524
x2: ArrayLike | float = 0,
3525-
where: Sequence[bool] | None = None,
3525+
where: ArrayLike | None = None,
35263526
step: Literal["pre", "post", "mid"] | None = None,
35273527
interpolate: bool = False,
35283528
*,

0 commit comments

Comments
 (0)