Skip to content

Commit dc54b03

Browse files
feat(letsplot): implement line-basic (#450)
## Summary Implements `line-basic` for **letsplot** library. **Parent Issue:** #205 **Sub-Issue:** #334 **Base Branch:** `plot/line-basic` **Attempt:** 1/3 ## Implementation - `plots/letsplot/line/line-basic/default.py` ## Changes - Clean KISS implementation following style guide - Uses Python Blue color (#306998) for line and points - Proper 4800x2700 px output via ggsize(1600, 900) with scale=3 - Minimal theme with proper typography sizing Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
1 parent a60a352 commit dc54b03

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

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

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from lets_plot import (
88
LetsPlot,
99
aes,
10-
element_line,
1110
element_text,
1211
geom_line,
1312
geom_point,
@@ -28,17 +27,11 @@
2827
# Plot
2928
plot = (
3029
ggplot(data, aes(x="time", y="value"))
31-
+ geom_line(color="#306998", size=2, alpha=1.0)
32-
+ geom_point(color="#306998", size=4, alpha=1.0)
30+
+ geom_line(color="#306998", size=2)
31+
+ geom_point(color="#306998", size=4)
3332
+ labs(x="Time", y="Value", title="Basic Line Plot")
3433
+ theme_minimal()
35-
+ theme(
36-
plot_title=element_text(size=20, face="bold"),
37-
axis_title=element_text(size=20),
38-
axis_text=element_text(size=16),
39-
panel_grid_major=element_line(color="#CCCCCC", size=0.5),
40-
panel_grid_minor=element_line(color="#EEEEEE", size=0.3),
41-
)
34+
+ theme(plot_title=element_text(size=20), axis_title=element_text(size=20), axis_text=element_text(size=16))
4235
+ ggsize(1600, 900)
4336
)
4437

0 commit comments

Comments
 (0)