[英]What do the arguments passed inside the plt.plot() method mean?
[英]What does the third parameter of plt.plot() in matplotlib do?
plt.plot()
通常接受 x、y 和格式。 但是,如果我將第三個參數作為數據傳遞,則會繪制另一條線。 我無法理解這種關系。
x=np.linspace(0,10,5)
plt.plot(x,x,x,label='linear')
plt.grid()
創建的情節:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.