python3.6で簡単なアニメーションを描画したいのですがうまくいきません。
具体的には実行した後、figureの別タブが出てきません。解決方法をお願いします。
コード
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
fig = plt.figure()
ims = []
for i in range(10):
rand = np.random.randn(100)
im = plt.plot(rand)
ims.append(im)
ani = animation.ArtistAnimation(fig, ims, interval=100)
plt.show()
あなたの回答
tips
プレビュー