Skip to content

Commit 4468e1a

Browse files
feat(altair): implement line-basic
Fix dimensions to match target 4800x2700 px (1600x900 at scale 3)
1 parent 35e12df commit 4468e1a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
# Combine and configure chart
2727
chart = (
2828
(line + points)
29-
.properties(width=1536, height=811, title=alt.Title("Basic Line Plot", fontSize=20))
29+
.properties(width=1600, height=900, title=alt.Title("Basic Line Plot", fontSize=20))
3030
.configure_view(strokeWidth=0)
3131
.configure_axis(grid=True, gridOpacity=0.3)
3232
)
3333

34-
# Save as PNG (1536 × 811 at scale 3 = 4800 × 2700 px)
34+
# Save as PNG (1600 × 900 at scale 3 = 4800 × 2700 px)
3535
chart.save("plot.png", scale_factor=3.0)

0 commit comments

Comments
 (0)