Skip to content

Commit db325cd

Browse files
feat(letsplot): implement bar-basic (#1348)
## Implementation: `bar-basic` - letsplot Implements the **letsplot** version of `bar-basic`. **File:** `plots/bar-basic/implementations/letsplot.py` --- :robot: *[impl-generate workflow](https://github.com/MarkusNeusinger/pyplots/actions/runs/20447581463)* --------- 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 a8f4b36 commit db325cd

2 files changed

Lines changed: 20 additions & 12 deletions

File tree

plots/bar-basic/implementations/letsplot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
""" pyplots.ai
22
bar-basic: Basic Bar Chart
3-
Library: letsplot 4.8.1 | Python 3.13.11
4-
Quality: 94/100 | Created: 2025-12-13
3+
Library: letsplot unknown | Python 3.13.11
4+
Quality: 99/100 | Created: 2025-12-23
55
"""
66

77
import pandas as pd
@@ -40,7 +40,7 @@
4040
axis_text_x=element_text(angle=45, hjust=1, size=16), # noqa: F405
4141
axis_text_y=element_text(size=16), # noqa: F405
4242
axis_title=element_text(size=20), # noqa: F405
43-
plot_title=element_text(size=20, hjust=0.5), # noqa: F405
43+
plot_title=element_text(size=24, hjust=0.5), # noqa: F405
4444
panel_grid_major_x=element_blank(), # noqa: F405
4545
)
4646
)
Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
library: letsplot
22
specification_id: bar-basic
3-
created: 2025-12-13 23:13:54+00:00
4-
updated: 2025-12-13 23:13:54+00:00
3+
created: '2025-12-23T00:23:43Z'
4+
updated: '2025-12-23T00:28:24Z'
55
generated_by: claude-opus-4-5-20251101
6-
workflow_run: 20199224376
7-
issue: 612
6+
workflow_run: 20447581463
7+
issue: 0
88
python_version: 3.13.11
9-
library_version: 4.8.1
9+
library_version: unknown
1010
preview_url: https://storage.googleapis.com/pyplots-images/plots/bar-basic/letsplot/plot.png
1111
preview_thumb: https://storage.googleapis.com/pyplots-images/plots/bar-basic/letsplot/plot_thumb.png
1212
preview_html: https://storage.googleapis.com/pyplots-images/plots/bar-basic/letsplot/plot.html
13-
quality_score: 94
13+
quality_score: 99
1414
review:
15-
strengths: []
16-
weaknesses: []
17-
improvements: []
15+
strengths:
16+
- Excellent use of geom_text with label_format for currency formatting ($X,XXX)
17+
- Clean ggplot2-style grammar with proper layering
18+
- Appropriate use of pd.Categorical to preserve category order
19+
- Well-configured theme with proper font sizes (16pt axis text, 20pt titles, 24pt
20+
plot title)
21+
- Correct 16:9 aspect ratio (1600x900 base, scaled 3x to 4800x2700)
22+
- Value labels positioned above bars using position_nudge for clarity
23+
weaknesses:
24+
- Could use scale_y_continuous with labels parameter for formatted y-axis tick values
25+
(currently shows raw numbers like 45,000 instead of $45K)

0 commit comments

Comments
 (0)