diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2019-10-01 13:39:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-01 13:39:43 -0700 |
commit | c0992ed4856df9fe02c2b31744a8a7e9088aedbc (patch) | |
tree | 5e8fd77d0fec46b6b8adaf90497a0f7f77e30f75 | |
parent | 3b43d4b2f92d07310e8e5faade14755865c44b7e (diff) | |
parent | 35adc7da84d8d77ec08c638fa86604b6605a3f0a (diff) | |
download | numpy-c0992ed4856df9fe02c2b31744a8a7e9088aedbc.tar.gz |
Merge pull request #14623 from sameshl/doc_npsinc
DOC: misleading np.sinc() documentation
-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) |