From a5078dcd66590d5e127b99b74e86f3d27cc75913 Mon Sep 17 00:00:00 2001 From: Tyler Reddy Date: Wed, 2 Jan 2019 11:12:00 -0800 Subject: 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 --- numpy/core/function_base.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'numpy/core/function_base.py') 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) -- cgit v1.2.1