使用python绘制数据帧的最小值

2024-04-28 12:05:35 发布

您现在位置:Python中文网/ 问答频道 /正文

我想在此图表中显示每条曲线的最小点。下面是我绘制这些曲线的代码和数据框

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()

enter image description here

数据帧:

enter image description here


Tags: 数据代码truedfplotstyledefline