Skip to content

Commit

Permalink
Merge pull request #24116 from meeseeksmachine/auto-backport-of-pr-24…
Browse files Browse the repository at this point in the history
…115-on-v3.6.x

Backport PR #24115 on branch v3.6.x (Fix mask lookup in fill_between for NumPy 1.24+)
  • Loading branch information
QuLogic authored Oct 7, 2022
2 parents d3651a8 + 0c248ac commit d336a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
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 d336a67

Please sign in to comment.