Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1af052 commit 68681daCopy full SHA for 68681da
1 file changed
lib/matplotlib/tests/test_streamplot.py
@@ -41,8 +41,8 @@ def test_masks_and_nans():
41
X, Y, U, V = velocity_field()
42
mask = np.zeros(U.shape, dtype=bool)
43
mask[40:60, 40:60] = 1
44
- U = np.ma.array(U, mask=mask)
45
U[:20, :20] = np.nan
+ U = np.ma.array(U, mask=mask)
46
with np.errstate(invalid='ignore'):
47
plt.streamplot(X, Y, U, V, color=U, cmap=plt.cm.Blues)
48
0 commit comments