Set height for diagrams #22
Answered
by
iils-mriestenpattgenrichter
iils-mriestenpattgenrichter
asked this question in
Q&A
-
Plotly diagrams have a fixed height, the width is adjusted depending on the view width. |
Beta Was this translation helpful? Give feedback.
Answered by
iils-mriestenpattgenrichter
Apr 4, 2024
Replies: 1 comment
-
For slides or similar, you can specify both the height and the width (fixed). The auto layout currently automatically adjusts the width based on a fixed height, and you can also adjust the initial height for this.
If you only set height, the width is still adjusted variably. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
iils-mriestenpattgenrichter
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For slides or similar, you can specify both the height and the width (fixed). The auto layout currently automatically adjusts the width based on a fixed height, and you can also adjust the initial height for this.
val linePlot = Plot.line[x = #[1, 2, 3] y = #[1, 5, 4]].layout[height = 789 width = 456]
If you only set height, the width is still adjusted variably.