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 68dad00 commit b1d657cCopy full SHA for b1d657c
lib/matplotlib/tests/test_axes.py
@@ -1478,17 +1478,18 @@ def test_pcolorargs():
1478
match='are not monotonically increasing or decreasing'):
1479
ax.pcolormesh(X, Y, Z, shading='auto')
1480
1481
- # GH 26093
+
1482
+def test_pcolorargs_with_read_only():
1483
x = np.arange(6).reshape(2, 3)
- mask = np.broadcast_to([False, True, False], x.shape) # read-only array
1484
- masked_x = np.ma.array(x, mask=mask)
+ xmask = np.broadcast_to([False, True, False], x.shape) # read-only array
1485
+ masked_x = np.ma.array(x, mask=xmask)
1486
plt.pcolormesh(masked_x)
1487
1488
x = np.linspace(0, 1, 10)
1489
y = np.linspace(0, 1, 10)
1490
X, Y = np.meshgrid(x, y)
1491
Z = np.sin(2 * np.pi * X) * np.cos(2 * np.pi * Y)
- Zmask = np.broadcast_to([True, False]*5, Z.shape)
1492
+ Zmask = np.broadcast_to([True, False] * 5, Z.shape)
1493
masked_Z = np.ma.array(Z, mask=Zmask)
1494
plt.pcolormesh(X, Y, masked_Z)
1495
0 commit comments