plt.figure(1)是什么意思
plt.figure(1)
plt.plot(x,c)
plt.plot(x,s)
plt.show()
其中,plt.figure(1)代表什么意思?plt.plot(x,c)和plt.plot(x,s)不是已經(jīng)命令畫圖了嗎?
plt.figure(1)
plt.plot(x,c)
plt.plot(x,s)
plt.show()
其中,plt.figure(1)代表什么意思?plt.plot(x,c)和plt.plot(x,s)不是已經(jīng)命令畫圖了嗎?
舉報
2017-12-27
plt.figure(1)是新建一個名叫 Figure1的畫圖窗口,plt.plot(x,c)是在畫圖窗口里具體繪制橫軸為x 縱軸為c的曲線