Append data with different colour in matplotlib in real time

前端 未结 0 1918
死守一世寂寞
死守一世寂寞 2020-12-22 17:21

I\'m updating dynamically a plot in a loop:

dat=[0, max(X[:, 0])]
fig = plt.figure()
ax = fig.add_subplot(111)
Ln, = ax.plot(dat)
Ln2, = ax.plot(dat)

plt.ion         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题