File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 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):
56335633 if not (np .all (dX >= 0 ) or np .all (dX <= 0 )):
56345634 cbook ._warn_external (
56355635 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 } ." )
56425641 X = np .hstack ((X [:, [0 ]] - dX [:, [0 ]],
56435642 X [:, :- 1 ] + dX ,
56445643 X [:, [- 1 ]] + dX [:, [- 1 ]]))
Original file line number Diff line number Diff line change @@ -1167,7 +1167,8 @@ def test_pcolorargs():
11671167 y = [- 10 , 10 ]
11681168 X , Y = np .meshgrid (x , y )
11691169 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' ):
11711172 ax .pcolormesh (X , Y , Z , shading = 'auto' )
11721173
11731174
You can’t perform that action at this time.
0 commit comments