@@ -706,14 +706,17 @@ def test_quadmesh_set_array_validation():
706
706
coll = ax .pcolormesh (x , y , np .ones (z .shape ))
707
707
z = np .arange (16 ).reshape ((4 , 4 ))
708
708
709
- with pytest .raises (ValueError , match = "Dimensions of A (4, 4) are incompatible with X (3) and/or Y (3)" ):
709
+ with pytest .raises (ValueError , match = "Dimensions of A (4, 4) "
710
+ "are incompatible with X (3) and/or Y (3)" ):
710
711
coll .set_array (z )
711
- with pytest .raises (ValueError , match = "Dimensions of A (16,) are incompatible with X (3) and/or Y (3)" ):
712
+ with pytest .raises (ValueError , match = "Dimensions of A (16,) "
713
+ "are incompatible with X (3) and/or Y (3)" ):
712
714
coll .set_array (z .ravel ())
713
-
715
+
714
716
fig , ax = plt .subplots ()
715
717
coll = ax .pcolormesh (x , y , np .ones (z .shape ), shading = 'nearest' )
716
- with pytest .raises (ValueError , match = "Dimensions of A (3, 3) are incompatible with X (4) and/or Y (4)" ):
718
+ with pytest .raises (ValueError , match = "Dimensions of A (3, 3) "
719
+ "are incompatible with X (4) and/or Y (4)" ):
717
720
z = np .arange (9 ).reshape ((3 , 3 ))
718
721
coll .set_array (z )
719
722
@@ -723,7 +726,8 @@ def test_quadmesh_set_array_validation():
723
726
fig , ax = plt .subplots ()
724
727
coll = ax .pcolormesh (x , y , np .ones (z .shape ), shading = 'gouraud' )
725
728
z = np .arange (16 ).reshape ((4 , 4 ))
726
- with pytest .raises (ValueError , match = "Dimensions of A (4, 4) are incompatible with X (2) and/or Y (2)" ):
729
+ with pytest .raises (ValueError , match = "Dimensions of A (4, 4) "
730
+ "are incompatible with X (2) and/or Y (2)" ):
727
731
coll .set_array (z )
728
732
729
733
0 commit comments