Skip to content

Commit d3f79bf

Browse files
committed
Add a line to test masked arrays with the first element masked
1 parent d6340ab commit d3f79bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,8 @@ def test_fill_between_interpolate():
584584

585585
# Test support for masked arrays.
586586
y2 = np.ma.masked_greater(y2, 1.0)
587+
# Test that plotting works for masked arrays with the first element masked
588+
y2[0] = np.ma.masked
587589
ax1 = fig.add_subplot(212, sharex=ax)
588590
ax1.plot(x, y1, x, y2, color='black')
589591
ax1.fill_between(x, y1, y2, where=y2>=y1, facecolor='green', interpolate=True)

0 commit comments

Comments
 (0)