Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a510e32

Browse files
authored
Merge pull request #19534 from ianthomas23/18986_fill_between_nan
BUG: fill_between with interpolate=True and NaN.
2 parents b939caa + 5a6d0c1 commit a510e32

8 files changed

+474
-87
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5286,7 +5286,8 @@ def _fill_between_x_or_y(
52865286
where = where & ~functools.reduce(
52875287
np.logical_or, map(np.ma.getmask, [ind, dep1, dep2]))
52885288

5289-
ind, dep1, dep2 = np.broadcast_arrays(np.atleast_1d(ind), dep1, dep2)
5289+
ind, dep1, dep2 = np.broadcast_arrays(
5290+
np.atleast_1d(ind), dep1, dep2, subok=True)
52905291

52915292
polys = []
52925293
for idx0, idx1 in cbook.contiguous_regions(where):
Binary file not shown.

0 commit comments

Comments
 (0)