Skip to content

Commit

Permalink
Backport PR #24115: Fix mask lookup in fill_between for NumPy 1.24+
Browse files Browse the repository at this point in the history
  • Loading branch information
timhoffm authored and meeseeksmachine committed Oct 7, 2022
1 parent d3651a8 commit 0c248ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/axes/_axes.py
Expand Up @@ -5256,7 +5256,7 @@ def _fill_between_x_or_y(
raise ValueError(f"where size ({where.size}) does not match "
f"{ind_dir} size ({ind.size})")
where = where & ~functools.reduce(
np.logical_or, map(np.ma.getmask, [ind, dep1, dep2]))
np.logical_or, map(np.ma.getmaskarray, [ind, dep1, dep2]))

ind, dep1, dep2 = np.broadcast_arrays(
np.atleast_1d(ind), dep1, dep2, subok=True)
Expand Down

0 comments on commit 0c248ac

Please sign in to comment.