matplotlibのArtistAnimationを使ってみました。図のテキストとタイトルは、各フレームで変更されるはずですが、変更されません。 私は同様の問題についてたくさんの記事を読んだことがありますが、解決策が何であるかはまだ分かりません。デモではタイトルの更新は表示されません。matplotlib artist animation:タイトルまたはテキストが変更されない
誰もが知っている場合、私は感謝します!
import matplotlib.pyplot as plt
import numpy as np
import matplotlib.animation as animation
fig =plt.figure()
ims=[]
for iternum in range(4):
plt.title(iternum)
plt.text(iternum,iternum,iternum)
ims.append([plt.scatter(np.random.randint(0,10,5), np.random.randint(0,20,5),marker='+' )])
#plt.cla()
ani = animation.ArtistAnimation(fig, ims, interval=500, blit=False,
repeat_delay=2000)
plt.show()
ワウ!説明とコードをありがとう!私はそれをやろうと3時間以上を過ごしました。私はそれをまったくやり遂げることはできなかったと思います。私は、彼らはあなただけ – user3177938