Skip to content

Commit 0146c97

Browse files
feat(matplotlib): implement box-basic (#1360)
## Implementation: `box-basic` - matplotlib Implements the **matplotlib** version of `box-basic`. **File:** `plots/box-basic/implementations/matplotlib.py` --- :robot: *[impl-generate workflow](https://github.com/MarkusNeusinger/pyplots/actions/runs/20447776148)* --------- 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 9590d7a commit 0146c97

2 files changed

Lines changed: 22 additions & 12 deletions

File tree

plots/box-basic/implementations/matplotlib.py

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

77
import matplotlib.pyplot as plt
@@ -13,11 +13,11 @@
1313
categories = ["Engineering", "Marketing", "Sales", "Support"]
1414
colors = ["#306998", "#FFD43B", "#4B8BBE", "#E8A838"]
1515

16-
# Generate realistic distribution data for each category
16+
# Generate realistic distribution data with varied characteristics
1717
data = [
1818
np.random.normal(75, 12, 100), # Engineering: mean 75, std 12
19-
np.random.normal(82, 8, 100), # Marketing: mean 82, std 8
20-
np.random.normal(70, 15, 100), # Sales: mean 70, std 15
19+
np.random.normal(82, 8, 100), # Marketing: mean 82, std 8, tighter spread
20+
np.random.normal(70, 15, 100), # Sales: mean 70, std 15, wider spread
2121
np.random.normal(78, 10, 100), # Support: mean 78, std 10
2222
]
2323

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,27 @@
11
library: matplotlib
22
specification_id: box-basic
3-
created: 2025-12-14 09:03:20+00:00
4-
updated: 2025-12-14 09:03:20+00:00
3+
created: '2025-12-23T00:35:11Z'
4+
updated: '2025-12-23T00:38:05Z'
55
generated_by: claude-opus-4-5-20251101
6-
workflow_run: 20205606503
7-
issue: 689
6+
workflow_run: 20447776148
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/box-basic/matplotlib/plot.png
1111
preview_thumb: https://storage.googleapis.com/pyplots-images/plots/box-basic/matplotlib/plot_thumb.png
1212
preview_html: null
13-
quality_score: 95
13+
quality_score: 92
1414
review:
15-
strengths: []
16-
weaknesses: []
17-
improvements: []
15+
strengths:
16+
- Excellent text sizing with proper font hierarchy (24/20/16pt)
17+
- Clean KISS code structure following matplotlib best practices
18+
- Uses tick_labels parameter correctly (avoiding deprecated API)
19+
- Good customization of box elements (patch_artist, custom line widths, alpha transparency)
20+
- Realistic department performance context with varied distributions
21+
- Proper outlier display with styled flierprops
22+
- Subtle grid enhances readability without distraction
23+
weaknesses:
24+
- Engineering (#306998) and Sales (#4B8BBE) colors are both blue shades - could
25+
use more distinct colors for better differentiation
26+
- Performance scores exceed 100 for some outliers which is slightly inconsistent
27+
if interpreting as percentage scores

0 commit comments

Comments
 (0)