We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2136935 commit ef8eaaeCopy full SHA for ef8eaae
lib/matplotlib/axes/_axes.py
@@ -6034,7 +6034,8 @@ def _interp_grid(X, require_monotonicity=False):
6034
# monotonicity of Y coords needs to be checked.
6035
if np.shape(X)[1] > 1:
6036
dX = np.diff(X, axis=1) * 0.5
6037
- if not (np.all(dX >= 0) or np.all(dX <= 0)):
+ if (require_monotonicity and
6038
+ not (np.all(dX >= 0) or np.all(dX <= 0))):
6039
_api.warn_external(
6040
f"The input coordinates to {funcname} are "
6041
"interpreted as cell centers, but are not "
0 commit comments