summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/function_base.py3
-rw-r--r--numpy/fft/pocketfft.py2
-rw-r--r--numpy/lib/function_base.py4
-rw-r--r--numpy/lib/twodim_base.py1
4 files changed, 0 insertions, 10 deletions
diff --git a/numpy/core/function_base.py b/numpy/core/function_base.py
index 762328173..21be695f9 100644
--- a/numpy/core/function_base.py
+++ b/numpy/core/function_base.py
@@ -112,7 +112,6 @@ def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None,
>>> import matplotlib
>>> import matplotlib.pyplot
- >>> matplotlib.pyplot.switch_backend('agg')
>>> import matplotlib.pyplot as plt
>>> N = 8
>>> y = np.zeros(N)
@@ -265,7 +264,6 @@ def logspace(start, stop, num=50, endpoint=True, base=10.0, dtype=None,
>>> import matplotlib
>>> import matplotlib.pyplot
- >>> matplotlib.pyplot.switch_backend('agg')
>>> import matplotlib.pyplot as plt
>>> N = 10
>>> x1 = np.logspace(0.1, 1, N, endpoint=True)
@@ -380,7 +378,6 @@ def geomspace(start, stop, num=50, endpoint=True, dtype=None, axis=0):
Graphical illustration of ``endpoint`` parameter:
>>> import matplotlib
- >>> matplotlib.use('agg')
>>> import matplotlib.pyplot as plt
>>> N = 10
>>> y = np.zeros(N)
diff --git a/numpy/fft/pocketfft.py b/numpy/fft/pocketfft.py
index 794d13937..2a41b12a3 100644
--- a/numpy/fft/pocketfft.py
+++ b/numpy/fft/pocketfft.py
@@ -164,7 +164,6 @@ def fft(a, n=None, axis=-1, norm=None):
the `numpy.fft` documentation:
>>> import matplotlib
- >>> matplotlib.use('Agg')
>>> import matplotlib.pyplot as plt
>>> t = np.arange(256)
>>> sp = np.fft.fft(np.sin(t))
@@ -259,7 +258,6 @@ def ifft(a, n=None, axis=-1, norm=None):
Create and plot a band-limited signal with random phases:
>>> import matplotlib
- >>> matplotlib.use('agg')
>>> import matplotlib.pyplot as plt
>>> t = np.arange(400)
>>> n = np.zeros((400,), dtype=complex)
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 274f957db..cce238459 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -2594,7 +2594,6 @@ def blackman(M):
Examples
--------
>>> import matplotlib
- >>> matplotlib.use('agg')
>>> import matplotlib.pyplot as plt
>>> np.blackman(12)
array([-1.38777878e-17, 3.26064346e-02, 1.59903635e-01, # may vary
@@ -2813,7 +2812,6 @@ def hanning(M):
>>> import matplotlib
>>> import matplotlib.pyplot
- >>> matplotlib.pyplot.switch_backend('agg')
>>> import matplotlib.pyplot as plt
>>> from numpy.fft import fft, fftshift
>>> window = np.hanning(51)
@@ -2916,7 +2914,6 @@ def hamming(M):
>>> import matplotlib
>>> import matplotlib.pyplot
- >>> matplotlib.pyplot.switch_backend('agg')
>>> import matplotlib.pyplot as plt
>>> from numpy.fft import fft, fftshift
>>> window = np.hamming(51)
@@ -3193,7 +3190,6 @@ def kaiser(M, beta):
Examples
--------
>>> import matplotlib
- >>> matplotlib.use('agg')
>>> import matplotlib.pyplot as plt
>>> np.kaiser(12, 14)
array([7.72686684e-06, 3.46009194e-03, 4.65200189e-02, # may vary
diff --git a/numpy/lib/twodim_base.py b/numpy/lib/twodim_base.py
index 54d0240ef..aa57911bb 100644
--- a/numpy/lib/twodim_base.py
+++ b/numpy/lib/twodim_base.py
@@ -646,7 +646,6 @@ def histogram2d(x, y, bins=10, range=None, normed=None, weights=None,
--------
>>> import matplotlib
>>> import matplotlib.pyplot
- >>> matplotlib.pyplot.switch_backend('agg')
>>> import matplotlib as mpl
>>> import matplotlib.pyplot as plt