From 35adc7da84d8d77ec08c638fa86604b6605a3f0a Mon Sep 17 00:00:00 2001 From: Samesh Lakhotia Date: Wed, 2 Oct 2019 00:32:25 +0530 Subject: DOC misleading np.sinc() documentation The documentation currently states "It works in 2-D as well" with attached example not correct. closes #14466 --- numpy/lib/function_base.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'numpy/lib/function_base.py') 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)) - - """ x = np.asanyarray(x) y = pi * where(x == 0, 1.0e-20, x) -- cgit v1.2.1