Add labels and title for plot

This commit is contained in:
flyingscorpio@clevo 2022-07-08 11:18:46 +02:00
parent 9a0c8038f5
commit c52bd9ce8c

View file

@ -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()