diff --git a/doc/pyplots/pyplot_formatstr.py b/doc/pyplots/pyplot_formatstr.py index 2c4f425da973..b7a7786a602e 100644 --- a/doc/pyplots/pyplot_formatstr.py +++ b/doc/pyplots/pyplot_formatstr.py @@ -1,5 +1,4 @@ import matplotlib.pyplot as plt plt.plot([1,2,3,4], [1,4,9,16], 'ro') plt.axis([0, 6, 0, 20]) - - +plt.show() diff --git a/doc/pyplots/pyplot_mathtext.py b/doc/pyplots/pyplot_mathtext.py index 9ee51eabd41a..d90f5cbb381e 100644 --- a/doc/pyplots/pyplot_mathtext.py +++ b/doc/pyplots/pyplot_mathtext.py @@ -10,3 +10,4 @@ fontsize=20) plt.xlabel('time (s)') plt.ylabel('volts (mV)') +plt.show() diff --git a/doc/pyplots/pyplot_text.py b/doc/pyplots/pyplot_text.py index 64f2441485b8..19aad305f06b 100644 --- a/doc/pyplots/pyplot_text.py +++ b/doc/pyplots/pyplot_text.py @@ -14,4 +14,4 @@ plt.text(60, .025, r'$\mu=100,\ \sigma=15$') plt.axis([40, 160, 0, 0.03]) plt.grid(True) - +plt.show() diff --git a/doc/pyplots/pyplot_three.py b/doc/pyplots/pyplot_three.py index ecb200e6b413..2762d7cbd1d7 100644 --- a/doc/pyplots/pyplot_three.py +++ b/doc/pyplots/pyplot_three.py @@ -6,4 +6,4 @@ # red dashes, blue squares and green triangles plt.plot(t, t, 'r--', t, t**2, 'bs', t, t**3, 'g^') - +plt.show() diff --git a/doc/pyplots/pyplot_two_subplots.py b/doc/pyplots/pyplot_two_subplots.py index 2a1af9fec45b..bfc6ebc121de 100644 --- a/doc/pyplots/pyplot_two_subplots.py +++ b/doc/pyplots/pyplot_two_subplots.py @@ -13,4 +13,4 @@ def f(t): plt.subplot(212) plt.plot(t2, np.cos(2*np.pi*t2), 'r--') - +plt.show()