Update app.py
Browse files
app.py
CHANGED
@@ -498,9 +498,13 @@ def plot_student_metrics(student_metrics_df, attendance_avg_stats, engagement_av
|
|
498 |
ax.set_xticks(index) # Set x-ticks to the index
|
499 |
ax.set_xticklabels(student_metrics_df['Student'], rotation=0, ha='right') # Set student names as x-tick labels
|
500 |
# Set the y-axis limits and tick locations
|
501 |
-
ax.set_ylim(0,
|
502 |
ax.yaxis.set_ticks(range(0, 119, 20)) # Increments of 20
|
503 |
|
|
|
|
|
|
|
|
|
504 |
# Display the plot
|
505 |
plt.tight_layout() # Adjust layout to fit elements
|
506 |
# plt.show() # Show the plot in a script environment (use st.pyplot(fig) in Streamlit)
|
|
|
498 |
ax.set_xticks(index) # Set x-ticks to the index
|
499 |
ax.set_xticklabels(student_metrics_df['Student'], rotation=0, ha='right') # Set student names as x-tick labels
|
500 |
# Set the y-axis limits and tick locations
|
501 |
+
ax.set_ylim(0, 119) # Range from 0 to 100
|
502 |
ax.yaxis.set_ticks(range(0, 119, 20)) # Increments of 20
|
503 |
|
504 |
+
# Hide the top and right spines
|
505 |
+
ax.spines['top'].set_visible(False))
|
506 |
+
ax.spines['right'].set_visible(False))
|
507 |
+
|
508 |
# Display the plot
|
509 |
plt.tight_layout() # Adjust layout to fit elements
|
510 |
# plt.show() # Show the plot in a script environment (use st.pyplot(fig) in Streamlit)
|