Set maximum y-axis range to 0<=y<=1
Signed-off-by: AKU <tom@tdpain.net>
This commit is contained in:
parent
f4d39f96bc
commit
666d0b2773
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 |
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue