0
import time
import matplotlib.pyplot as plt
xvalues = [1,2,3,4,5,6,7,8,9]
yvalues = [1,3,5,9,8,7,8,5,6]
plt.xlabel('time in hours')
plt.ylabel('ph')
plt.plot([xvalues],[yvalues], 'ro')
plt.axis ([0,10,0,15])
plt.show()
time.sleep(1)
clf()
我想和情節的人物,然後刪除特定時間後的數字。但是,當我嘗試它時,我得到了錯誤:我想刪除數字的最後一行的未定義名稱。錯誤:未定義的名字,當我使用CLF()在matplotlib