[英]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.