File tree 2 files changed +9
-8
lines changed
2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -5578,13 +5578,14 @@ def _interp_grid(X):
5578
5578
dX = np .diff (X , axis = 1 )/ 2.
5579
5579
if not (np .all (dX >= 0 ) or np .all (dX <= 0 )):
5580
5580
cbook ._warn_external (
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 } )." )
5581
+ f"Mesh cell edges are being inferred from "
5582
+ f"mesh cell centers, but the input "
5583
+ f"coordinates to { funcname } are not "
5584
+ "monotonically increasing or decreasing. The "
5585
+ "inferred cell edges can produce misleading "
5586
+ "results in this case. If so, it is possible "
5587
+ "to supply the quadrilateral edges to "
5588
+ f"{ funcname } yourself." )
5588
5589
X = np .hstack ((X [:, [0 ]] - dX [:, [0 ]],
5589
5590
X [:, :- 1 ] + dX ,
5590
5591
X [:, [- 1 ]] + dX [:, [- 1 ]]))
Original file line number Diff line number Diff line change @@ -1180,7 +1180,7 @@ 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 , match = "Mesh cell edges are being inferred " ):
1184
1184
ax .pcolormesh (X , Y , Z , shading = 'auto' )
1185
1185
1186
1186
You can’t perform that action at this time.
0 commit comments