JuliaPlots / JuliaPlots/PlotlyJS.jl

Setting initial Blink window size independently from layout `width` and `height`

Open
#395 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
444
Forks
86
PR merge metrics
No merged PRs in 30d

Description

Right now, we can set the size of a plot by specifying `width` and `height` in `layout` which will then get queried by [`display_blink`](https://github.com/JuliaPlots/PlotlyJS.jl/blob/256f8f3a615c84f8c89894c3eea7be9eb2e907e3/src/display.jl#L164-L168) to figure out what the appropriate size of the Blink window should be. Unfortunately, if we specify `width` and `layout`, this also "locks" the plot size in the sense that `PlotConfig(responsive=true)` doesn't have any effect anymore - i.e., if we resize the Blink window, it doesn't change the plot.

It would be great if it were possible to set an "initial" window size for the Blink pop-up that afterwards still reacts to changes in that window size. Would that be possible?
I don't know if it would be acceptable to let resizing of the Blink window also update the `width` & `height` value in `layout` - but it would make sense to me...

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.