Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 87b4715

Browse filesBrowse files
anntzerMeeseeksDev[bot]
authored andcommitted
Backport PR #9766: Fix mixed_subplots example
1 parent 3aa2436 commit 87b4715
Copy full SHA for 87b4715

File tree

Expand file treeCollapse file tree

1 file changed

+0
-9
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-9
lines changed

‎examples/mplot3d/mixed_subplots.py

Copy file name to clipboardExpand all lines: examples/mplot3d/mixed_subplots.py
-9Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.