summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorJörg Döpfert <jdoepfert@users.noreply.github.com>2018-06-08 18:22:01 +0200
committerCharles Harris <charlesr.harris@gmail.com>2018-06-08 10:22:01 -0600
commitaf66e487a57bfd4850f4306e3b85d1dac3c70412 (patch)
tree9d557efa6bca87c9e23485be76c99bd213ad3e24 /numpy
parentccb2a712ab55a34b26b06bfd325020af3889b00c (diff)
downloadnumpy-af66e487a57bfd4850f4306e3b85d1dac3c70412.tar.gz
DOC: make docstring of np.interp clearer (#11280)
* update docstring of interp() * change "calculate" to "evaluate" to be consistent * remove "values" * make "data points" consistent
Diffstat (limited to 'numpy')
-rw-r--r--numpy/lib/function_base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 70aa654dc..95edb95fa 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -1181,12 +1181,12 @@ def interp(x, xp, fp, left=None, right=None, period=None):
One-dimensional linear interpolation.
Returns the one-dimensional piecewise linear interpolant to a function
- with given values at discrete data-points.
+ with given discrete data points (`xp`, `fp`), evaluated at `x`.
Parameters
----------
x : array_like
- The x-coordinates of the interpolated values.
+ 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