ProfessorLeVesseur commited on
Commit
920d0ae
·
verified ·
1 Parent(s): 32c99eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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, 100) # Range from 0 to 100
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)