afficher un graphe matplolib avec streamlit
Bonjour j'envoie ce message car je ne trouve pas de solution, je souhaite afficher un graphique sur streamlit pour ce faire j'ai écrit ce code :
Code:
1 2 3 4 5 6
| mat=["mat0","mat1","mat2","mat3"]
etapeParMatglobal=[nbEtapeParMat0,nbEtapeParMat1,nbEtapeParMat2,nbEtapeParMat3]
graph = plt.bar(mat, etapeParMatglobal )
plt.xlabel("maturité")
plt.ylabel("Etape par maturité")
st.pyplot(graph) |
ce code me renvoie l'erreur suivante :
Citation:
AttributeError: 'BarContainer' object has no attribute 'savefig'
merci d'avance pour toute l'aide que vous pourrais m'apporter