Update visualization.py
Browse files- visualization.py +9 -0
visualization.py
CHANGED
|
@@ -22,10 +22,19 @@ class Visualization:
|
|
| 22 |
|
| 23 |
ax.spines['top'].set_visible(False)
|
| 24 |
ax.spines['right'].set_visible(False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
st.pyplot(fig)
|
| 27 |
return fig
|
| 28 |
|
|
|
|
| 29 |
def plot_student_metrics(self, student_metrics_df, attendance_avg_stats, engagement_avg_stats):
|
| 30 |
fig, ax = plt.subplots(figsize=(10, 6))
|
| 31 |
bar_width = 0.35
|
|
|
|
| 22 |
|
| 23 |
ax.spines['top'].set_visible(False)
|
| 24 |
ax.spines['right'].set_visible(False)
|
| 25 |
+
|
| 26 |
+
# Remove x-axis labels and ticks
|
| 27 |
+
ax.set_xticks([])
|
| 28 |
+
ax.set_xticklabels([])
|
| 29 |
+
ax.spines['bottom'].set_visible(False)
|
| 30 |
+
|
| 31 |
+
st.pyplot(fig)
|
| 32 |
+
return fig
|
| 33 |
|
| 34 |
st.pyplot(fig)
|
| 35 |
return fig
|
| 36 |
|
| 37 |
+
|
| 38 |
def plot_student_metrics(self, student_metrics_df, attendance_avg_stats, engagement_avg_stats):
|
| 39 |
fig, ax = plt.subplots(figsize=(10, 6))
|
| 40 |
bar_width = 0.35
|