content_image/977291.jpg content_image/977292.jpg
df.loc[(df['benchmark'] == bench) & (df['smt'] == smt)].groupby('cores')['time'].transform('max') / \ (df.loc[(df['benchmark'] == bench) & (df['smt'] == smt)].time)*100 for bench in df.benchmark.unique(): fig, axes = plt.subplots(nrows=1, ncols=3, figsize=(10,3)) fig.suptitle("Benchmark: " + bench + ".C") for smt in df.smt.unique(): if smt == "smt1": i=0 if smt == "smt2": i=1 if smt == "smt4": i=2 df2=df.loc[(df['benchmark'] == bench) & (df['smt'] == smt)] plot = df2.pivot(index="cores", columns="optimization").plot(kind="bar", \ color=my_colors, width=0.8, ax=axes[i], ylim=(0.95*min(df2.optSpeedup), \ 1.05*max(df2.optSpeedup)), y="optSpeedup", title=smt) plot.legend(loc=1, prop={'size': 8}) fig.tight_layout() fig.show() 

<img src='content_image/977291.jpg'>

<img src='content_image/977292.jpg'>

