Skip to content

Commit

Permalink
tidied up speed test plot.
Browse files Browse the repository at this point in the history
  • Loading branch information
cylammarco committed Apr 25, 2023
1 parent 871691c commit e4be114
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions speed_test/plot_speed_test_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
axs[0].plot(
insizes,
p / n,
label=f"numba with output size: {size}",
color=red_gradient[j],
)

Expand All @@ -53,7 +54,6 @@
axs[1].plot(
insizes,
p_e / n_e,
label=f"numba with output size: {size}",
color=red_gradient[k],
)

Expand All @@ -74,7 +74,6 @@
axs[1].grid()

axs[0].legend()
axs[1].legend()

axs[0].xaxis.set_major_formatter(ScalarFormatter(useMathText=False))
axs[1].xaxis.set_major_formatter(ScalarFormatter(useMathText=False))
Expand All @@ -90,8 +89,8 @@
axs[0].set_xlim(150, 4250)
axs[1].set_xlim(150, 4250)

axs[0].set_ylim(0, 250)
axs[1].set_ylim(0, 250)
axs[0].set_ylim(0, 400)
axs[1].set_ylim(0, 400)

axs[1].set_yticklabels([])

Expand Down
Binary file modified speed_test/speed_test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e4be114

Please sign in to comment.