diff options
author | Samesh Lakhotia <samesh.lakhotia@gmail.com> | 2019-10-02 00:32:25 +0530 |
---|---|---|
committer | Samesh Lakhotia <samesh.lakhotia@gmail.com> | 2019-10-02 00:32:25 +0530 |
commit | 35adc7da84d8d77ec08c638fa86604b6605a3f0a (patch) | |
tree | 5e8fd77d0fec46b6b8adaf90497a0f7f77e30f75 /numpy/lib/function_base.py | |
parent | 3b43d4b2f92d07310e8e5faade14755865c44b7e (diff) | |
download | numpy-35adc7da84d8d77ec08c638fa86604b6605a3f0a.tar.gz |
DOC misleading np.sinc() documentation
The documentation currently states "It works in 2-D as well"
with attached example not correct.
closes #14466
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index ebf918012..46950bc95 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -3297,13 +3297,6 @@ def sinc(x): Text(0.5, 0, 'X') >>> plt.show() - It works in 2-D as well: - - >>> x = np.linspace(-4, 4, 401) - >>> xx = np.outer(x, x) - >>> plt.imshow(np.sinc(xx)) - <matplotlib.image.AxesImage object at 0x...> - """ x = np.asanyarray(x) y = pi * where(x == 0, 1.0e-20, x) |