summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorTyler Reddy <tyler.je.reddy@gmail.com>2019-01-02 11:12:00 -0800
committerTyler Reddy <tyler.je.reddy@gmail.com>2019-01-02 11:12:00 -0800
commita5078dcd66590d5e127b99b74e86f3d27cc75913 (patch)
treef28925dde0c04b2f1925aaea088629b555b83d8e /numpy/core
parent49a798c27d08f244207829c57d9621c9514e8c82 (diff)
downloadnumpy-a5078dcd66590d5e127b99b74e86f3d27cc75913.tar.gz
DOC, TST: clean up matplotlib imports
* as requested by review in gh-12634, the vast majority of docstring matplotlib imports can be simplified to a single line
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/function_base.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/numpy/core/function_base.py b/numpy/core/function_base.py
index 21be695f9..f8800b83e 100644
--- a/numpy/core/function_base.py
+++ b/numpy/core/function_base.py
@@ -110,8 +110,6 @@ def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None,
Graphical illustration:
- >>> import matplotlib
- >>> import matplotlib.pyplot
>>> import matplotlib.pyplot as plt
>>> N = 8
>>> y = np.zeros(N)
@@ -262,8 +260,6 @@ def logspace(start, stop, num=50, endpoint=True, base=10.0, dtype=None,
Graphical illustration:
- >>> import matplotlib
- >>> import matplotlib.pyplot
>>> import matplotlib.pyplot as plt
>>> N = 10
>>> x1 = np.logspace(0.1, 1, N, endpoint=True)
@@ -377,7 +373,6 @@ def geomspace(start, stop, num=50, endpoint=True, dtype=None, axis=0):
Graphical illustration of ``endpoint`` parameter:
- >>> import matplotlib
>>> import matplotlib.pyplot as plt
>>> N = 10
>>> y = np.zeros(N)