Skip to content

Commit 15a8b99

Browse files
authored
fix: allow array-like fill_between where masks (#31898)
* fix: allow array-like fill_between where masks * fix: update pyplot boilerplate for fill_between typing --------- Co-authored-by: cyphercodes <cyphercodes@users.noreply.github.com>
1 parent ca8df27 commit 15a8b99

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
@@ -482,7 +482,7 @@ class Axes(_AxesBase):
482482
x: ArrayLike,
483483
y1: ArrayLike | float,
484484
y2: ArrayLike | float = ...,
485-
where: Sequence[bool] | None = ...,
485+
where: ArrayLike | None = ...,
486486
interpolate: bool = ...,
487487
step: Literal["pre", "post", "mid"] | None = ...,
488488
*,
@@ -494,7 +494,7 @@ class Axes(_AxesBase):
494494
y: ArrayLike,
495495
x1: ArrayLike | float,
496496
x2: ArrayLike | float = ...,
497-
where: Sequence[bool] | None = ...,
497+
where: ArrayLike | None = ...,
498498
step: Literal["pre", "post", "mid"] | None = ...,
499499
interpolate: bool = ...,
500500
*,

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3499,7 +3499,7 @@ def fill_between(
34993499
x: ArrayLike,
35003500
y1: ArrayLike | float,
35013501
y2: ArrayLike | float = 0,
3502-
where: Sequence[bool] | None = None,
3502+
where: ArrayLike | None = None,
35033503
interpolate: bool = False,
35043504
step: Literal["pre", "post", "mid"] | None = None,
35053505
*,
@@ -3524,7 +3524,7 @@ def fill_betweenx(
35243524
y: ArrayLike,
35253525
x1: ArrayLike | float,
35263526
x2: ArrayLike | float = 0,
3527-
where: Sequence[bool] | None = None,
3527+
where: ArrayLike | None = None,
35283528
step: Literal["pre", "post", "mid"] | None = None,
35293529
interpolate: bool = False,
35303530
*,

0 commit comments

Comments
 (0)