Skip to content

Commit faf47e3

Browse files
committed
BUG: fill_between with interpolate=True and NaN.
Fixes issue matplotlib#18986.
1 parent 01d3149 commit faf47e3

File tree

8 files changed

+468
-87
lines changed

8 files changed

+468
-87
lines changed

lib/matplotlib/axes/_axes.py

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

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

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

0 commit comments

Comments
 (0)