summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreuronion <42553970+euronion@users.noreply.github.com>2019-02-28 18:32:02 +0100
committerGitHub <noreply@github.com>2019-02-28 18:32:02 +0100
commit1d901ee669aa1999d074bb26612d8196d8b27dc9 (patch)
tree78eb398d6af8350bdfa8dd9c4dec1de3a729136e
parentb9ab1a57b9c7ff9462b8d678bce91274d0ad4d12 (diff)
downloadnumpy-1d901ee669aa1999d074bb26612d8196d8b27dc9.tar.gz
DOC: Update interp docstring
Adding 'strictly' to make the conditions to be met by the `xp` argument even more clear. Following the suggestion in https://github.com/numpy/numpy/issues/10448#issuecomment-468302058 .
-rw-r--r--numpy/lib/function_base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index b61a64b8e..2a66bdb3a 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -1292,9 +1292,9 @@ def interp(x, xp, fp, left=None, right=None, period=None):
The x-coordinates at which to evaluate the interpolated values.
xp : 1-D sequence of floats
- The x-coordinates of the data points, must be increasing if argument
- `period` is not specified. Otherwise, `xp` is internally sorted after
- normalizing the periodic boundaries with ``xp = xp % period``.
+ The x-coordinates of the data points, must be strictly increasing if
+ argument `period` is not specified. Otherwise, `xp` is internally sorted
+ after normalizing the periodic boundaries with ``xp = xp % period``.
fp : 1-D sequence of float or complex
The y-coordinates of the data points, same length as `xp`.