次のコードを使用して、プロットを 10 秒ごとに更新しようとしています。
@sched.interval_schedule(seconds = 10)
def update_line():
c = 0
while c <= 9:
y[c] = y[c] + 1
c = c+1
x = range(1, 11)
plt.ion()
fig = plt.figure(1)
ax = fig.add_subplot(111)
plt.plot(x, y)
y データの最初のセットのグラフのみをプロットしています。その後、次のエラーが表示されます。 -02-06 16:00:42.942079)" スキップ: 実行中のインスタンスの最大数に達しました (1)"
代わりに何らかの方法で draw() を使用する必要がありますか?
ありがとう