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 b1d657c commit 7d3937cCopy full SHA for 7d3937c
lib/matplotlib/tests/test_axes.py
@@ -1482,6 +1482,7 @@ def test_pcolorargs():
1482
def test_pcolorargs_with_read_only():
1483
x = np.arange(6).reshape(2, 3)
1484
xmask = np.broadcast_to([False, True, False], x.shape) # read-only array
1485
+ assert xmask.flags.writeable is False
1486
masked_x = np.ma.array(x, mask=xmask)
1487
plt.pcolormesh(masked_x)
1488
@@ -1490,6 +1491,7 @@ def test_pcolorargs_with_read_only():
1490
1491
X, Y = np.meshgrid(x, y)
1492
Z = np.sin(2 * np.pi * X) * np.cos(2 * np.pi * Y)
1493
Zmask = np.broadcast_to([True, False] * 5, Z.shape)
1494
+ assert Zmask.flags.writeable is False
1495
masked_Z = np.ma.array(Z, mask=Zmask)
1496
plt.pcolormesh(X, Y, masked_Z)
1497
0 commit comments