Update visualization.py
Browse files- visualization.py +2 -2
visualization.py
CHANGED
|
@@ -56,8 +56,8 @@ class Visualization:
|
|
| 56 |
x_min, x_max = ax.get_xlim()
|
| 57 |
|
| 58 |
# Highlight the range 80-89 for "Engagement Threshold" and 90-100 for "Attendance Threshold"
|
| 59 |
-
ax.fill_betweenx(y=[80, 89], x1=x_min, x2=x_max, color='#3AB0FF', alpha=0.2, label='Engagement Threshold: ≥ 80%')
|
| 60 |
ax.fill_betweenx(y=[90, 100], x1=x_min, x2=x_max, color='#005288', alpha=0.2, label='Attendance Threshold: ≥ 90%')
|
|
|
|
| 61 |
|
| 62 |
# Add horizontal lines for thresholds and averages
|
| 63 |
# ax.axhline(y=90, color='#005288', linestyle=':', linewidth=1.5, label=f'Attendance Threshold: ≥ 90%')
|
|
@@ -74,7 +74,7 @@ class Visualization:
|
|
| 74 |
ax.legend(loc='upper right', frameon=False)
|
| 75 |
ax.set_xticks(index)
|
| 76 |
ax.set_xticklabels(student_metrics_df['Student'], rotation=0, ha='right')
|
| 77 |
-
ax.set_ylim(0,
|
| 78 |
ax.yaxis.set_ticks(range(0, 124, 25))
|
| 79 |
|
| 80 |
ax.spines['top'].set_visible(False)
|
|
|
|
| 56 |
x_min, x_max = ax.get_xlim()
|
| 57 |
|
| 58 |
# Highlight the range 80-89 for "Engagement Threshold" and 90-100 for "Attendance Threshold"
|
|
|
|
| 59 |
ax.fill_betweenx(y=[90, 100], x1=x_min, x2=x_max, color='#005288', alpha=0.2, label='Attendance Threshold: ≥ 90%')
|
| 60 |
+
ax.fill_betweenx(y=[80, 90], x1=x_min, x2=x_max, color='#3AB0FF', alpha=0.2, label='Engagement Threshold: ≥ 80%')
|
| 61 |
|
| 62 |
# Add horizontal lines for thresholds and averages
|
| 63 |
# ax.axhline(y=90, color='#005288', linestyle=':', linewidth=1.5, label=f'Attendance Threshold: ≥ 90%')
|
|
|
|
| 74 |
ax.legend(loc='upper right', frameon=False)
|
| 75 |
ax.set_xticks(index)
|
| 76 |
ax.set_xticklabels(student_metrics_df['Student'], rotation=0, ha='right')
|
| 77 |
+
ax.set_ylim(0, 140)
|
| 78 |
ax.yaxis.set_ticks(range(0, 124, 25))
|
| 79 |
|
| 80 |
ax.spines['top'].set_visible(False)
|