Skip to content

Commit e04ab0c

Browse files
feat(matplotlib): implement violin-basic (#1359)
## Implementation: `violin-basic` - matplotlib Implements the **matplotlib** version of `violin-basic`. **File:** `plots/violin-basic/implementations/matplotlib.py` --- :robot: *[impl-generate workflow](https://github.com/MarkusNeusinger/pyplots/actions/runs/20447775895)* --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent c052e0e commit e04ab0c

2 files changed

Lines changed: 18 additions & 9 deletions

File tree

plots/violin-basic/implementations/matplotlib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
""" pyplots.ai
22
violin-basic: Basic Violin Plot
33
Library: matplotlib 3.10.8 | Python 3.13.11
4-
Quality: 92/100 | Created: 2025-12-14
4+
Quality: 92/100 | Created: 2025-12-23
55
"""
66

77
import matplotlib.pyplot as plt
@@ -53,7 +53,7 @@
5353
ax.set_xticks(range(len(categories)))
5454
ax.set_xticklabels(categories)
5555
ax.set_xlabel("School", fontsize=20)
56-
ax.set_ylabel("Test Score", fontsize=20)
56+
ax.set_ylabel("Test Score (points)", fontsize=20)
5757
ax.set_title("violin-basic · matplotlib · pyplots.ai", fontsize=24)
5858
ax.tick_params(axis="both", labelsize=16)
5959
ax.grid(True, alpha=0.3, linestyle="--", axis="y")
Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
library: matplotlib
22
specification_id: violin-basic
3-
created: 2025-12-14 09:50:11+00:00
4-
updated: 2025-12-14 09:50:11+00:00
3+
created: '2025-12-23T00:35:08Z'
4+
updated: '2025-12-23T00:38:15Z'
55
generated_by: claude-opus-4-5-20251101
6-
workflow_run: 20206149623
7-
issue: 722
6+
workflow_run: 20447775895
7+
issue: 0
88
python_version: 3.13.11
99
library_version: 3.10.8
1010
preview_url: https://storage.googleapis.com/pyplots-images/plots/violin-basic/matplotlib/plot.png
1111
preview_thumb: https://storage.googleapis.com/pyplots-images/plots/violin-basic/matplotlib/plot_thumb.png
1212
preview_html: null
1313
quality_score: 92
1414
review:
15-
strengths: []
16-
weaknesses: []
17-
improvements: []
15+
strengths:
16+
- Excellent data scenario with test scores across schools - immediately comprehensible
17+
- Clear visual hierarchy with yellow median lines contrasting well against blue
18+
violins
19+
- Proper quartile visualization with IQR bars inside violins
20+
- Text sizes perfectly calibrated for 4800x2700 output
21+
- Good variation in distributions showing different spread and center characteristics
22+
weaknesses:
23+
- Test score values exceeding 100 are unrealistic for typical percentage-based scoring
24+
- Could use matplotlib built-in quartile visualization (showquartiles parameter)
25+
instead of manual vlines
26+
- Missing legend element (though not critical for this plot type)

0 commit comments

Comments
 (0)