我想在此图表中显示每条曲线的最小点。下面是我绘制这些曲线的代码和数据框
def plot_df(df):
ax = df.plot.line(logy=True,style=['+-','o-','.-','s-','x-'],grid=True,figsize=(10,6))
ax.set_xticks(plot_1.index)
plt.xlabel('IR LED Pulse Width (ms)', fontsize=16)
plt.ylabel('RMSE', fontsize=16)
plt.legend(['Proposed','FFT','Autocorrelation','Zero crossing','Peak detection'],bbox_to_anchor=(1.04,1), loc="upper left",fontsize=14)
plt.show()
数据帧:
在函数中包含以下线条将表示图表上每条曲线的最小点为黑色的“X”
相关问题 更多 >
编程相关推荐