回答編集履歴

3

d

2020/02/13 06:30

投稿

tiitoi
tiitoi

スコア21956

test CHANGED
@@ -101,3 +101,65 @@
101
101
 
102
102
 
103
103
  ![イメージ説明](c826d322d1dafbadc21460c457b30775.png)
104
+
105
+
106
+
107
+ ## 追記
108
+
109
+
110
+
111
+ ```python
112
+
113
+ import matplotlib.pyplot as plt
114
+
115
+ import numpy as np
116
+
117
+
118
+
119
+ fig = plt.figure(figsize=(12, 14))
120
+
121
+ fig.subplots_adjust(wspace=0.3, hspace=0.3)
122
+
123
+
124
+
125
+ for ax_no, v in enumerate(range(11), 1):
126
+
127
+ ax = fig.add_subplot(4, 3, ax_no)
128
+
129
+
130
+
131
+ for l in [-2, -1, 1, 2]:
132
+
133
+ y = np.linspace(0, np.pi, 1000)
134
+
135
+ theta = np.arctan(np.pi / (2 * l))
136
+
137
+ x = v / np.sqrt(1 + (2 * l / np.pi) ** 2) / np.sin(y + theta)
138
+
139
+
140
+
141
+ x[x > x.max() * 0.99] = np.inf
142
+
143
+ x[x < x.min() * 0.99] = -np.inf
144
+
145
+
146
+
147
+ ax.plot(x, y, label=f"l = {l}")
148
+
149
+ ax.set_xlim(0, 130)
150
+
151
+ ax.grid(True)
152
+
153
+ ax.legend()
154
+
155
+ ax.set_title(f"v = {v}")
156
+
157
+
158
+
159
+ plt.show()
160
+
161
+ ```
162
+
163
+
164
+
165
+ ![イメージ説明](8329619af407015462e9f65472253833.png)

2

d

2020/02/13 06:30

投稿

tiitoi
tiitoi

スコア21956

test CHANGED
@@ -43,3 +43,61 @@
43
43
 
44
44
 
45
45
  ![イメージ説明](9c7efd4556b920c0f2ea73ea717e3b97.png)
46
+
47
+
48
+
49
+ ## 追記
50
+
51
+
52
+
53
+ ```python
54
+
55
+ import matplotlib.pyplot as plt
56
+
57
+ import numpy as np
58
+
59
+
60
+
61
+ fig = plt.figure(figsize=(10, 12))
62
+
63
+ fig.subplots_adjust(wspace=0.3, hspace=0.3)
64
+
65
+
66
+
67
+ for ax_no, v in enumerate(range(11), 1):
68
+
69
+ ax = fig.add_subplot(4, 3, ax_no)
70
+
71
+
72
+
73
+ for l in [-2, -1, 1, 2]:
74
+
75
+ y = np.linspace(0, np.pi, 1000)
76
+
77
+ theta = np.arctan(np.pi / (2 * l))
78
+
79
+ x = v / np.sqrt(1 + (2 * l / np.pi) ** 2) / np.sin(y + theta)
80
+
81
+
82
+
83
+ x[x > x.max() * 0.99] = np.inf
84
+
85
+ x[x < x.min() * 0.99] = -np.inf
86
+
87
+
88
+
89
+ ax.plot(x, y, label=f"l = {l}")
90
+
91
+ ax.legend()
92
+
93
+ ax.set_title(f"v = {v}")
94
+
95
+
96
+
97
+ plt.show()
98
+
99
+ ```
100
+
101
+
102
+
103
+ ![イメージ説明](c826d322d1dafbadc21460c457b30775.png)

1

d

2020/02/12 09:15

投稿

tiitoi
tiitoi

スコア21956

test CHANGED
@@ -39,3 +39,7 @@
39
39
  plt.show()
40
40
 
41
41
  ```
42
+
43
+
44
+
45
+ ![イメージ説明](9c7efd4556b920c0f2ea73ea717e3b97.png)