Set maximum y-axis range to 0<=y<=1

Signed-off-by: AKU <tom@tdpain.net>
This commit is contained in:
akp 2021-12-19 21:46:59 +00:00
parent f4d39f96bc
commit 666d0b2773
No known key found for this signature in database
GPG key ID: AA5726202C8879B7
2 changed files with 2 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 54 KiB

Before After
Before After

View file

@ -14,7 +14,7 @@ COLOURS = {
"Nim": "#ffc200"
}
BAR_WIDTH = 0.25
MAX_Y_VALUE = 1
challenge_dir_regex = re.compile("""(?m)^(\d{2})-([a-zA-Z]+)$""")
@ -88,6 +88,7 @@ def do_auxillary_parts(axis):
plt.ylabel("Running time (seconds)")
plt.xlabel("Day")
plt.legend(handles=[patches.Patch(color=COLOURS[label], label=label) for label in COLOURS])
plt.ylim([0, MAX_Y_VALUE])
# plt.legend(legends)
do_auxillary_parts(axp1)