2024-05-20 10:59:49 发布
网友
我尝试使用python处理数据以获得SPC或CPK图表。 我想画一条像“UCL”这样的线。但现在,我只能画一条像P-bar一样的线。 我怎样才能容易地得到它
我的代码:
df.plot(x=‘StartDateTime’,y=[‘UCL’,’LCL’,’P-bar’,’P’]) plt.show()
我明白了:
一种方法是使用df.plot()的linestyle=参数将绘图的线型设置为“steps”:
df.plot()
linestyle=
df.plot(x='StartDateTime', y=['UCL','LCL','P-bar','P'], linestyle='steps')
一种方法是使用
df.plot()
的linestyle=
参数将绘图的线型设置为“steps”:相关问题 更多 >
编程相关推荐