Skip to content

Commit d552e04

Browse files
authored
Update matplotlib-box-plots.md
1 parent c3f715e commit d552e04

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

contrib/plotting-visualization/matplotlib-box-plots.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,13 @@ class_B_scores = [70, 75, 80, 85, 90]
134134
class_C_scores = [65, 70, 75, 80, 85]
135135

136136
### Creating a grouped box plot
137+
137138
plt.boxplot([class_A_scores, class_B_scores, class_C_scores], labels=['Class A', 'Class B', 'Class C'])
139+
138140
plt.title('Exam Scores by Class')
141+
139142
plt.xlabel('Classes')
143+
140144
plt.ylabel('Scores')
145+
141146
plt.show()

0 commit comments

Comments
 (0)