Skip to content

Commit a947457

Browse files
feat(letsplot): implement line-basic
Add alpha to geom_point for better visual clarity.
1 parent dc54b03 commit a947457

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)