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

Skip to content

Commit 68681da

Browse files
committed
Fix NumPy 1.11 MaskedArrayFutureWarning in test.
1 parent b1af052 commit 68681da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_streamplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ def test_masks_and_nans():
4141
X, Y, U, V = velocity_field()
4242
mask = np.zeros(U.shape, dtype=bool)
4343
mask[40:60, 40:60] = 1
44-
U = np.ma.array(U, mask=mask)
4544
U[:20, :20] = np.nan
45+
U = np.ma.array(U, mask=mask)
4646
with np.errstate(invalid='ignore'):
4747
plt.streamplot(X, Y, U, V, color=U, cmap=plt.cm.Blues)
4848

0 commit comments

Comments
 (0)