fixed usage statistics axes labels

This commit is contained in:
Faraphel 2024-01-25 19:16:40 +01:00
parent 9967f1dff7
commit 1abd1327ef

View file

@ -20,5 +20,7 @@ def analyse(datas: list[dict]) -> plt.Figure:
axes.bar(x, y, color=ressource.usage.colors, edgecolor='black')
axes.set_xticks(x)
axes.set_xticklabels(ressource.usage.labels)
axes.set_xlabel("Usage")
axes.set_ylabel("Quantité")
return figure