def get_idle_power_plot(df):
    fig, axes = plt.subplots(1, 2, figsize=(15, 7))
    for cluster, ax in zip(['little', 'big'], axes):
        data = df[df.cluster == cluster].pivot_table(index=['state'], columns='cpus', values='power')
        err = df[df.cluster == cluster].pivot_table(index=['state'], columns='cpus', values='power_error')
        data.plot(kind='bar', ax=ax, rot=30, yerr=err)
        ax.set_title('{} cluster'.format(cluster))
        ax.set_xlim(-1, 0.5 - len(data.columns))
        ax.set_ylabel('Power (mW)')
    return fig
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/instrumentation/energy_model/__init__.py/get_idle_power_plot/swapped operands of `-`