SolaraS
Solara3y ago
3 replies
Christoph

Resizing a plotly plot based on available screen size

Is there a way to get the available screen size and react to it? I want my plotly plots to change size depending on available space. I found this related github issue for the same problem with matplotlib figures: https://github.com/widgetti/solara/discussions/158
Is this solution using a custom vue component also the correct way to go for plotly plots or is there a pure python solution?
GitHub
How do I adjust the width of a matplotlib figure to the size available? I know how to change the size of the figure, but how can I obtain the information needed from the context? Or is the wrong an...
Was this page helpful?