Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -86,14 +86,18 @@ if analysis_run:
|
|
86 |
# Grafik oluşturma
|
87 |
st.subheader("Not Dağılım Grafiği")
|
88 |
unique_values, counts = np.unique(notes_result, return_counts=True)
|
89 |
-
|
|
|
|
|
|
|
|
|
90 |
bars = plt.bar(unique_values, counts, width=0.3)
|
91 |
plt.axvline(x=average_x, color='red', linestyle='--')
|
92 |
plt.text(average_x + 1.5, max(counts), 'Ortalama Not', color='red', rotation=0, ha='center', va='bottom')
|
93 |
|
94 |
if my_note in unique_values:
|
95 |
plt.text(my_note, counts[unique_values == my_note][0], 'Benim\nNotum', color='green', rotation=0, ha='center', va='bottom')
|
96 |
-
|
97 |
for bar in bars:
|
98 |
if bar.get_x() <= my_note < bar.get_x() + bar.get_width():
|
99 |
bar.set_color('green')
|
@@ -162,4 +166,4 @@ st.markdown(
|
|
162 |
Developed by **Ali Cemil Özdemir** on **01.12.2024**.
|
163 |
For feedback and suggestions, please email: [[email protected]](mailto:[email protected])
|
164 |
"""
|
165 |
-
)
|
|
|
86 |
# Grafik oluşturma
|
87 |
st.subheader("Not Dağılım Grafiği")
|
88 |
unique_values, counts = np.unique(notes_result, return_counts=True)
|
89 |
+
|
90 |
+
# Grafik boyutunu küçültme
|
91 |
+
plt.figure(figsize=(8, 5)) # Boyutu küçültüyoruz
|
92 |
+
|
93 |
+
# Grafik çizimi
|
94 |
bars = plt.bar(unique_values, counts, width=0.3)
|
95 |
plt.axvline(x=average_x, color='red', linestyle='--')
|
96 |
plt.text(average_x + 1.5, max(counts), 'Ortalama Not', color='red', rotation=0, ha='center', va='bottom')
|
97 |
|
98 |
if my_note in unique_values:
|
99 |
plt.text(my_note, counts[unique_values == my_note][0], 'Benim\nNotum', color='green', rotation=0, ha='center', va='bottom')
|
100 |
+
|
101 |
for bar in bars:
|
102 |
if bar.get_x() <= my_note < bar.get_x() + bar.get_width():
|
103 |
bar.set_color('green')
|
|
|
166 |
Developed by **Ali Cemil Özdemir** on **01.12.2024**.
|
167 |
For feedback and suggestions, please email: [[email protected]](mailto:[email protected])
|
168 |
"""
|
169 |
+
)
|