Add labels and title for plot
This commit is contained in:
parent
9a0c8038f5
commit
c52bd9ce8c
1 changed files with 3 additions and 1 deletions
|
@ -275,7 +275,9 @@ def generate_average_graph(title: str, dates: tuple[datetime], avg: tuple[float]
|
|||
"""Plot average versus datetime"""
|
||||
|
||||
plt.plot(dates, avg)
|
||||
plt.title = title
|
||||
plt.title(title)
|
||||
plt.xlabel("Dates")
|
||||
plt.ylabel("Moyennes")
|
||||
plt.show()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue