JuliaPlots / PlotlyJS.jl

Julia library for plotting with plotly.js
Other
418 stars 77 forks source link

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

Open thchr opened 3 years ago

thchr commented 3 years ago

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 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...