Skip to content

Commit bd59f8a

Browse files
committed
Merge pull request #2344 from anshbansal/master
Fixed the issue of pyplot tutorial missing the show() command
1 parent 85a71c0 commit bd59f8a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

doc/pyplots/pyplot_formatstr.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import matplotlib.pyplot as plt
22
plt.plot([1,2,3,4], [1,4,9,16], 'ro')
33
plt.axis([0, 6, 0, 20])
4-
5-
4+
plt.show()

doc/pyplots/pyplot_mathtext.py

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
fontsize=20)
1111
plt.xlabel('time (s)')
1212
plt.ylabel('volts (mV)')
13+
plt.show()

doc/pyplots/pyplot_text.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
plt.text(60, .025, r'$\mu=100,\ \sigma=15$')
1515
plt.axis([40, 160, 0, 0.03])
1616
plt.grid(True)
17-
17+
plt.show()

doc/pyplots/pyplot_three.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66

77
# red dashes, blue squares and green triangles
88
plt.plot(t, t, 'r--', t, t**2, 'bs', t, t**3, 'g^')
9-
9+
plt.show()

doc/pyplots/pyplot_two_subplots.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ def f(t):
1313

1414
plt.subplot(212)
1515
plt.plot(t2, np.cos(2*np.pi*t2), 'r--')
16-
16+
plt.show()

0 commit comments

Comments
 (0)