在这里插入代码片
import time
from threading import Thread
from matplotlib import pyplot as plt
`
``def show(time):
for i in range(1,8):
value = i * 5
plt.plot(range(value))
plt.pause(time)
def close():
plt.close()
thread1 = Thread(target=close)
thread2 = Thread(target=show, args=(10,))
thread1.start()
thread2.start()
实时刷新画图
最新推荐文章于 2023-08-30 01:33:58 发布