Skip to content

Commit d336a67

Browse files
authored
Merge pull request #24116 from meeseeksmachine/auto-backport-of-pr-24115-on-v3.6.x
Backport PR #24115 on branch v3.6.x (Fix mask lookup in fill_between for NumPy 1.24+)
2 parents d3651a8 + 0c248ac commit d336a67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5256,7 +5256,7 @@ def _fill_between_x_or_y(
52565256
raise ValueError(f"where size ({where.size}) does not match "
52575257
f"{ind_dir} size ({ind.size})")
52585258
where = where & ~functools.reduce(
5259-
np.logical_or, map(np.ma.getmask, [ind, dep1, dep2]))
5259+
np.logical_or, map(np.ma.getmaskarray, [ind, dep1, dep2]))
52605260

52615261
ind, dep1, dep2 = np.broadcast_arrays(
52625262
np.atleast_1d(ind), dep1, dep2, subok=True)

0 commit comments

Comments
 (0)