1
我正在尋找一種方法,當我的腳本正在運行時允許我更新座標軸,但是我找不到它。例如:Matplotlib更新軸
import matplotlib.pyplot as plt
x = (1,2)
y = (1,2)
plt.plot(x,y, 'r-')
plt.show()
#here during run of program I want to clear axis with help of plt.cla() and update it
#new one
# x = (2,4)
# y = (2,4)
#plt.plot(x,y, 'b-')