File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -5633,12 +5633,11 @@ def _interp_grid(X):
5633
5633
if not (np .all (dX >= 0 ) or np .all (dX <= 0 )):
5634
5634
cbook ._warn_external (
5635
5635
f"The input coordinates to { funcname } are "
5636
- "not all either increasing or decreasing, "
5637
- "the automatically computed edges can "
5638
- "produce misleading results in this case. "
5639
- "It is recommended to supply the "
5640
- f"quadrilateral edges to { funcname } "
5641
- f" yourself. See help({ funcname } )." )
5636
+ "interpreted as cell centers, but are not "
5637
+ "monotonically increasing or decreasing. "
5638
+ "This may lead to incorrectly calculated cell "
5639
+ "edges, in which case, please supply "
5640
+ f"explicit cell edges to { funcname } ." )
5642
5641
X = np .hstack ((X [:, [0 ]] - dX [:, [0 ]],
5643
5642
X [:, :- 1 ] + dX ,
5644
5643
X [:, [- 1 ]] + dX [:, [- 1 ]]))
Original file line number Diff line number Diff line change @@ -1167,7 +1167,8 @@ def test_pcolorargs():
1167
1167
y = [- 10 , 10 ]
1168
1168
X , Y = np .meshgrid (x , y )
1169
1169
Z = np .zeros (X .shape )
1170
- with pytest .warns (UserWarning , match = "The input coordinates" ):
1170
+ with pytest .warns (UserWarning ,
1171
+ match = 'are not monotonically increasing or decreasing' ):
1171
1172
ax .pcolormesh (X , Y , Z , shading = 'auto' )
1172
1173
1173
1174
You can’t perform that action at this time.
0 commit comments