Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba79e99

Browse files
authored
Merge pull request #9767 from matplotlib/auto-backport-of-pr-9766
Backport PR #9766 on branch v2.1.x
2 parents 3aa2436 + 87b4715 commit ba79e99

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

examples/mplot3d/mixed_subplots.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,11 @@ def f(t):
1616
return np.multiply(s1, e1)
1717

1818

19-
#############################################
2019
# Set up a figure twice as tall as it is wide
21-
#############################################
2220
fig = plt.figure(figsize=plt.figaspect(2.))
2321
fig.suptitle('A tale of 2 subplots')
2422

25-
26-
#############################################
2723
# First subplot
28-
#############################################
2924
ax = fig.add_subplot(2, 1, 1)
3025

3126
t1 = np.arange(0.0, 5.0, 0.1)
@@ -37,10 +32,7 @@ def f(t):
3732
ax.grid(True)
3833
ax.set_ylabel('Damped oscillation')
3934

40-
41-
#############################################
4235
# Second subplot
43-
#############################################
4436
ax = fig.add_subplot(2, 1, 2, projection='3d')
4537

4638
X = np.arange(-5, 5, 0.25)
@@ -53,5 +45,4 @@ def f(t):
5345
linewidth=0, antialiased=False)
5446
ax.set_zlim(-1, 1)
5547

56-
5748
plt.show()

0 commit comments

Comments
 (0)