Skip to content

Commit

Permalink
Plot adjustments (#183)
Browse files Browse the repository at this point in the history
* Minor formatting tweaks

* Adjust axes
  • Loading branch information
jordandsullivan authored Jan 23, 2025
1 parent cc28b00 commit 3481cdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Binary file modified benchmarks/avg_compiler_benchmarks_over_time.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions benchmarks/scripts/plot_avg_benchmarks_over_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def extract_compiler_versions(header):
increment=2, # Vertical adjustment step
max_attempts=10,
)
plt.pause(0.1)
# plt.pause(0.1)
# Update the last seen version for this compiler
last_version_seen[compiler] = current_version
previous_bboxes = [] # Reset previous bboxes for next date
Expand All @@ -108,9 +108,9 @@ def extract_compiler_versions(header):

ax[0].set_title("Average Compiled Ratio over Time")
ax[0].set_ylabel("Compiled Ratio")
# ax[0].legend(title="Compiler", loc='center left')
ax[0].set_ylim(0.745, 0.96)
# Expand axes to be slightly larger than data range
ax[0].legend(title="Compiler", loc="center right")
ax[0].legend(title="Compiler")


#### Plot Compile time
Expand Down Expand Up @@ -169,7 +169,7 @@ def extract_compiler_versions(header):
ax[1].set_ylabel("Compile Time (s)")
ax[1].set_xlabel("Date")
ax[1].set_yscale("log")
ax[1].legend(title="Compiler", loc="center right")
ax[1].legend(title="Compiler")
adjust_axes_to_fit_labels(ax[1], x_scale=1.01, y_scale=1.75, y_log=True)

plt.xticks(rotation=45)
Expand Down

0 comments on commit 3481cdf

Please sign in to comment.