diff options
author | euronion <42553970+euronion@users.noreply.github.com> | 2019-02-28 18:32:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-28 18:32:02 +0100 |
commit | 1d901ee669aa1999d074bb26612d8196d8b27dc9 (patch) | |
tree | 78eb398d6af8350bdfa8dd9c4dec1de3a729136e /numpy/lib/function_base.py | |
parent | b9ab1a57b9c7ff9462b8d678bce91274d0ad4d12 (diff) | |
download | numpy-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 .
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 6 |
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`. |