質問編集履歴
1
コードを入力しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
ボールが一定速度 ???? で動くアニメーションを生成したいのですが、このままの状態では、ボールは長方形をすり抜けてしまいます。 壁にぶつかったときは跳ね返るようなアニメーションを作成するにはどうしたらいいですか。
|
2
2
|
途中の一部分がわかりません。
|
3
|
-
|
4
|
-
import matplotlib.pyplot as plt
|
3
|
+
```import matplotlib.pyplot as plt
|
5
4
|
from matplotlib.animation import ArtistAnimation
|
6
5
|
fig, ax = plt.subplots()
|
7
6
|
ims = []
|
@@ -26,4 +25,6 @@
|
|
26
25
|
plt.rc('animation', html='jshtml')
|
27
26
|
plt.close()
|
28
27
|
|
29
|
-
anim
|
28
|
+
anim
|
29
|
+
コード
|
30
|
+
```
|