Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 49c6f50 + 7290647 commit eedb1b0Copy full SHA for eedb1b0
examples/mplot3d/mixed_subplots.py
@@ -16,16 +16,11 @@ def f(t):
16
return np.multiply(s1, e1)
17
18
19
-#############################################
20
# Set up a figure twice as tall as it is wide
21
22
fig = plt.figure(figsize=plt.figaspect(2.))
23
fig.suptitle('A tale of 2 subplots')
24
25
-
26
27
# First subplot
28
29
ax = fig.add_subplot(2, 1, 1)
30
31
t1 = np.arange(0.0, 5.0, 0.1)
@@ -37,10 +32,7 @@ def f(t):
37
32
ax.grid(True)
38
33
ax.set_ylabel('Damped oscillation')
39
34
40
41
42
35
# Second subplot
43
44
36
ax = fig.add_subplot(2, 1, 2, projection='3d')
45
46
X = np.arange(-5, 5, 0.25)
@@ -53,5 +45,4 @@ def f(t):
53
linewidth=0, antialiased=False)
54
ax.set_zlim(-1, 1)
55
47
56
57
48
plt.show()
0 commit comments