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 616be00 commit 6542ab9Copy full SHA for 6542ab9
1 file changed
lib/matplotlib/tests/test_axes.py
@@ -1478,6 +1478,20 @@ def test_pcolorargs():
1478
match='are not monotonically increasing or decreasing'):
1479
ax.pcolormesh(X, Y, Z, shading='auto')
1480
1481
+ # GH 26093
1482
+ x = np.arange(6).reshape(2, 3)
1483
+ mask = np.broadcast_to([False, True, False], x.shape) # read-only array
1484
+ masked_x = np.ma.array(x, mask=mask)
1485
+ plt.pcolormesh(masked_x)
1486
+
1487
+ x = np.linspace(0, 1, 10)
1488
+ y = np.linspace(0, 1, 10)
1489
+ X, Y = np.meshgrid(x, y)
1490
+ Z = np.sin(2 * np.pi * X) * np.cos(2 * np.pi * Y)
1491
+ Zmask = np.broadcast_to([True, False]*5, Z.shape)
1492
+ masked_Z = np.ma.array(Z, mask = Zmask)
1493
+ plt.pcolormesh(X, Y, masked_Z)
1494
1495
1496
@check_figures_equal(extensions=["png"])
1497
def test_pcolornearest(fig_test, fig_ref):
0 commit comments