質問編集履歴
1
完全なコードに書き換えました
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,9 +8,49 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
コードの中でも関係がありそうな場所を抽出しています.
|
12
11
|
|
12
|
+
|
13
|
+
```import numpy as np
|
14
|
+
|
15
|
+
import matplotlib.pyplot as plt
|
16
|
+
|
17
|
+
import matplotlib.ticker as tick
|
18
|
+
|
19
|
+
import math as m
|
20
|
+
|
21
|
+
from matplotlib.animation import ArtistAnimation
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
r = 190
|
26
|
+
|
27
|
+
theta = np.arange(0,2*m.pi+1,0.1)
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
plt.rc("font",family="serif")
|
32
|
+
|
33
|
+
plt.figure()
|
34
|
+
|
35
|
+
plt.xlim([-200,200])
|
36
|
+
|
37
|
+
plt.ylim([-200,200])
|
38
|
+
|
39
|
+
plt.plot(r*np.cos(theta),r*np.sin(theta))
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
plt.gca().xaxis.set_minor_locator(tick.MultipleLocator(1))
|
44
|
+
|
45
|
+
plt.gca().yaxis.set_minor_locator(tick.MultipleLocator(1))
|
46
|
+
|
47
|
+
plt.grid(which="minor")
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
anim = []
|
52
|
+
|
13
|
-
|
53
|
+
tt = np.arange(0,10,0.1)
|
14
54
|
|
15
55
|
|
16
56
|
|
@@ -48,6 +88,8 @@
|
|
48
88
|
|
49
89
|
anim.append(im)
|
50
90
|
|
91
|
+
|
92
|
+
|
51
93
|
anim = ArtistAnimation(fig,anim)
|
52
94
|
|
53
95
|
|