diff options
author | Zane Bradley <zanegbradley@gmail.com> | 2018-01-25 15:15:28 -0800 |
---|---|---|
committer | Zane Bradley <zanegbradley@gmail.com> | 2018-01-25 15:15:28 -0800 |
commit | eb17e184122cfd8cc624b64b3e55c240bdff9ebb (patch) | |
tree | b3516e1478161f161c6a30aa5e1654c0a2aca2f5 /numpy/lib/function_base.py | |
parent | 9404833f9d3c5c02eae6713433a0db081a6f2572 (diff) | |
download | numpy-eb17e184122cfd8cc624b64b3e55c240bdff9ebb.tar.gz |
DOC: fix formatting in interp example
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 7571c4f3b..391c47a06 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -1236,7 +1236,8 @@ def interp(x, xp, fp, left=None, right=None, period=None): >>> np.interp(x, xp, fp, period=360) array([7.5, 5., 8.75, 6.25, 3., 3.25, 3.5, 3.75]) - Complex interpolation + Complex interpolation: + >>> x = [1.5, 4.0] >>> xp = [2,3,5] >>> fp = [1.0j, 0, 2+3j] |