Spaces:
Sleeping
Sleeping
Update app.py
Browse files94 unmodified lines959697989910010142 unmodified lines14414514614714814915015115215315415515694 unmodified lines# Grafik oluşturmast.subheader("Not Dağılım Grafiği")unique_values, counts = np.unique(notes_result, return_counts=True)plt.figure(figsize=(10, 6))bars = plt.bar(unique_values, counts, width=0.3)plt.axvline(x=average_x, color='red', linestyle='--')plt.text(average_x + 1.5, max(counts), 'Ortalama Not', color='red', rotation=0, ha='center', va='bottom')42 unmodified linesva="top",transform=plt.gca().transAxes # Koordinatları grafiğe göre ayarla)# Grafik gösterimist.pyplot(plt)# Grafik indirme bağlantısıbuf = BytesIO()plt.savefig(buf, format="png")buf.seek(0)st.download_button(label="Grafiği İndir",94 unmodified lines959697989910010142 unmodified lines14414514614714814915015115215315415515615715894 unmodified lines# Grafik oluşturmast.subheader("Not Dağılım Grafiği")unique_values, counts = np.unique(notes_result, return_counts=True)plt.figure(figsize=(10, 6),dpi=150)bars = plt.bar(unique_values, counts, width=0.3)plt.axvline(x=average_x, color='red', linestyle='--')plt.text(average_x + 1.5, max(counts), 'Ortalama Not', color='red', rotation=0, ha='center', va='bottom')42 unmodified linesva="top",transform=plt.gca().transAxes # Koordinatları grafiğe göre ayarla)# Kenar boşluklarını optimize etplt.subplots_adjust(left=0.1, bottom=0.1, right=0.9, top=0.9)# Grafik gösterimist.pyplot(plt)# Grafik indirme bağlantısıbuf = BytesIO()plt.savefig(buf, format="png",bbox_inches='tight')buf.seek(0)st.download_button(label="Grafiği İndir",
app.py+5-3