Skip to content

Commit

Permalink
Merge pull request #24115 from QuLogic/fix-maskarray-np124
Browse files Browse the repository at this point in the history
Fix mask lookup in fill_between for NumPy 1.24+
  • Loading branch information
timhoffm committed Oct 7, 2022
2 parents c0bbd78 + b776ff1 commit 6f137b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/axes/_axes.py
Expand Up @@ -5272,7 +5272,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 6f137b9

Please sign in to comment.