Excude languages from benchmark graph that are not in use

This commit is contained in:
akp 2024-12-07 02:17:43 +00:00
parent 9964241104
commit dc910fedfb
No known key found for this signature in database
GPG key ID: CF8D58F3DEB20755
2 changed files with 2 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Before After
Before After

View file

@ -49,6 +49,7 @@ axp2.axhline(y=15, color="#fc8080", linestyle="--")
for i, language in enumerate(benchmark_data):
data = benchmark_data[language]
part_one_times = []
part_two_times = []
@ -107,7 +108,7 @@ def do_auxillary_parts(axis):
plt.yscale("log")
plt.xlabel("Day")
plt.legend(
handles=[patches.Patch(color=COLOURS[label], label=label) for label in COLOURS]
handles=[patches.Patch(color=COLOURS[label], label=label) for label in COLOURS if len(benchmark_data[label]) > 0]
)
# plt.ylim([0, MAX_Y_VALUE])
# plt.legend(legends)