ProfessorLeVesseur commited on
Commit
41ce9ac
·
verified ·
1 Parent(s): df83cfd

Update visualization.py

Browse files
Files changed (1) hide show
  1. visualization.py +3 -4
visualization.py CHANGED
@@ -56,10 +56,9 @@ class Visualization:
56
  ax.axhline(y=80, color='#3AB0FF', linestyle=':', linewidth=1.5, label=f'Engagement Threshold: ≥ 80%')
57
  ax.axhline(y=attendance_avg_stats, color='#005288', linestyle='--', linewidth=1.5, label=f'Attendance Average: {attendance_avg_stats}%')
58
  ax.axhline(y=engagement_avg_stats, color='#3AB0FF', linestyle='--', linewidth=1.5, label=f'Engagement Average: {engagement_avg_stats}%')
59
- ax.fill_between(90, 100, alpha=0.1, color='#005288', label='Attendance Goal')
60
- ax.fill_between(80, 89, alpha=0.1, color='#3AB0FF', label='Engagement Goal')
61
-
62
-
63
  ax.set_xlabel('Student')
64
  ax.set_ylabel('Percentage (%)')
65
  ax.set_title('Student Attendance and Engagement Metrics')
 
56
  ax.axhline(y=80, color='#3AB0FF', linestyle=':', linewidth=1.5, label=f'Engagement Threshold: ≥ 80%')
57
  ax.axhline(y=attendance_avg_stats, color='#005288', linestyle='--', linewidth=1.5, label=f'Attendance Average: {attendance_avg_stats}%')
58
  ax.axhline(y=engagement_avg_stats, color='#3AB0FF', linestyle='--', linewidth=1.5, label=f'Engagement Average: {engagement_avg_stats}%')
59
+ ax.fill_between(x=np.linspace(ax.get_xlim() <sup> </sup>, ax.get_xlim()[1], 100, alpha=0.1, color='#005288', label='Attendance Goal')
60
+ ax.fill_between(x=np.linspace(ax.get_xlim() <sup> </sup>, ax.get_xlim()[1], 89, alpha=0.1, color='#3AB0FF', label='Engagement Goal')
61
+
 
62
  ax.set_xlabel('Student')
63
  ax.set_ylabel('Percentage (%)')
64
  ax.set_title('Student Attendance and Engagement Metrics')