File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1507,16 +1507,16 @@ def test_pcolorargs_with_read_only():
1507
1507
y = np .linspace (0 , 1 , 10 )
1508
1508
X , Y = np .meshgrid (x , y )
1509
1509
Z = np .sin (2 * np .pi * X ) * np .cos (2 * np .pi * Y )
1510
- mask = np .broadcast_to ([True , False ] * 5 , Z .shape )
1510
+ mask = np .zeros (10 , dtype = bool )
1511
+ mask [- 1 ] = True
1512
+ mask = np .broadcast_to (mask , Z .shape )
1511
1513
assert mask .flags .writeable is False
1512
1514
masked_Z = np .ma .array (Z , mask = mask )
1513
1515
plt .pcolormesh (X , Y , masked_Z )
1514
1516
1515
1517
masked_X = np .ma .array (X , mask = mask )
1516
1518
masked_Y = np .ma .array (Y , mask = mask )
1517
- with pytest .warns (UserWarning ,
1518
- match = 'are not monotonically increasing or decreasing' ):
1519
- plt .pcolor (masked_X , masked_Y , masked_Z )
1519
+ plt .pcolor (masked_X , masked_Y , masked_Z )
1520
1520
1521
1521
1522
1522
@check_figures_equal (extensions = ["png" ])
You can’t perform that action at this time.
0 commit comments