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 : Sélectionner tout - Visualiser dans une fenêtre à part
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 :
AttributeError: 'BarContainer' object has no attribute 'savefig'
merci d'avance pour toute l'aide que vous pourrais m'apporter