Skip to content

Commit 13e600c

Browse files
claude[bot]github-actions[bot]MarkusNeusinger
authored
feat(letsplot): implement line-basic (#460)
## Summary Implements `line-basic` for **letsplot** library. **Parent Issue:** #205 **Sub-Issue:** #456 **Base Branch:** `plot/line-basic` **Attempt:** 1/3 ## Implementation - `plots/letsplot/line/line-basic/default.py` ## Details - Uses `geom_line()` with `geom_point()` overlay for data point visibility - Python Blue (#306998) color for consistent styling - Properly sized output (4800 × 2700 px via scale=3) - Follows letsplot ggplot2-style grammar of graphics Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Markus Neusinger <2921697+MarkusNeusinger@users.noreply.github.com>
1 parent 0786958 commit 13e600c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plots/letsplot/line/line-basic/default.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
plot = (
2929
ggplot(data, aes(x="time", y="value"))
3030
+ geom_line(color="#306998", size=2)
31-
+ geom_point(color="#306998", size=4)
31+
+ geom_point(color="#306998", size=4, alpha=0.8)
3232
+ labs(x="Time", y="Value", title="Basic Line Plot")
3333
+ theme_minimal()
3434
+ theme(plot_title=element_text(size=20), axis_title=element_text(size=20), axis_text=element_text(size=16))
3535
+ ggsize(1600, 900)
3636
)
3737

38-
# Save - scale 3x to get 4800 x 2700 px
38+
# Save (scale 3x to get 4800 × 2700 px)
3939
ggsave(plot, "plot.png", path=".", scale=3)

0 commit comments

Comments
 (0)