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 @@ -5579,12 +5579,11 @@ def _interp_grid(X):
5579
5579
if not (np .all (dX >= 0 ) or np .all (dX <= 0 )):
5580
5580
cbook ._warn_external (
5581
5581
f"The input coordinates to { funcname } are "
5582
- "not all either increasing or decreasing, "
5583
- "the automatically computed edges can "
5584
- "produce misleading results in this case. "
5585
- "It is recommended to supply the "
5586
- f"quadrilateral edges to { funcname } "
5587
- f" yourself. See help({ funcname } )." )
5582
+ "interpreted as cell centers, but are not "
5583
+ "monotonically increasing or decreasing. "
5584
+ "This may lead to incorrectly calculated cell "
5585
+ "edges, in which case, please supply "
5586
+ f"explicit cell edges to { funcname } ." )
5588
5587
X = np .hstack ((X [:, [0 ]] - dX [:, [0 ]],
5589
5588
X [:, :- 1 ] + dX ,
5590
5589
X [:, [- 1 ]] + dX [:, [- 1 ]]))
Original file line number Diff line number Diff line change @@ -1180,7 +1180,8 @@ def test_pcolorargs():
1180
1180
y = [- 10 , 10 ]
1181
1181
X , Y = np .meshgrid (x , y )
1182
1182
Z = np .zeros (X .shape )
1183
- with pytest .warns (UserWarning , match = "The input coordinates" ):
1183
+ with pytest .warns (UserWarning ,
1184
+ match = 'are not monotonically increasing or decreasing' ):
1184
1185
ax .pcolormesh (X , Y , Z , shading = 'auto' )
1185
1186
1186
1187
You can’t perform that action at this time.
0 commit comments