Browse Source

position legend for optimal submit method in bottom right to make the entire plot readable

master
Constantin Fürst 1 year ago
parent
commit
8f68f41ba0
  1. 5
      benchmarks/benchmark-plotters/plot-opt-submitmethod.py
  2. BIN
      benchmarks/benchmark-results/plot-opt-submitmethod.png

5
benchmarks/benchmark-plotters/plot-opt-submitmethod.py

@ -86,8 +86,9 @@ def main():
df.set_index(index, inplace=True) df.set_index(index, inplace=True)
df = df.sort_values(y_label) df = df.sort_values(y_label)
sns.barplot(x=x_label, y=y_label, hue=var_label, data=df, palette="rocket", errorbar="sd").set(yscale="log")
ax = sns.barplot(x=x_label, y=y_label, hue=var_label, data=df, palette="rocket", errorbar="sd")
ax.set(yscale="log")
sns.move_legend(ax, "lower right")
plt.title(title) plt.title(title)
plt.savefig(os.path.join(folder_path, "plot-opt-submitmethod.png"), bbox_inches='tight') plt.savefig(os.path.join(folder_path, "plot-opt-submitmethod.png"), bbox_inches='tight')
plt.show() plt.show()

BIN
benchmarks/benchmark-results/plot-opt-submitmethod.png

Before

Width: 623  |  Height: 453  |  Size: 35 KiB

After

Width: 623  |  Height: 453  |  Size: 36 KiB

Loading…
Cancel
Save