Makie.jl icon indicating copy to clipboard operation
Makie.jl copied to clipboard

WGLMakie Resize Feature

Open bradcarman opened this issue 4 years ago • 6 comments

I was wondering if it would be possible to auto-resize a WGLMakie figure? For example, when the figure is displayed in a VSCode Plot Pane window, would it be possible to:

  1. Fill the plot pane window based on the window initial size
  2. Auto-resize the figure based on a change to the plot pane size?

Basically, I'm looking for similar functionality as the PlotlyJS.jl package, which fills and resizes based on the Blink window or the VSCode Plot Pane size.

bradcarman avatar Sep 16 '21 23:09 bradcarman

Hi,

PlotlyJS.jl package, which fills and resizes based on the Blink window or the VSCode Plot Pane size.

Does not work for me.

using Plots
plotlyjs()
display(plot(sign.(randn(100, 4)), layout = (4, 1), link =:x))

Can you show a basic example?

bardo84 avatar Oct 01 '21 08:10 bardo84

Plots has a bug, you need to use PlotlyJS instead...

plotlyjs

bradcarman avatar Oct 01 '21 13:10 bradcarman

Thanks a lot @bradcarman ! Another reason to convert to Makie. Feels low-level with lots of controls. I am writing a linked subplots function. Not that difficult. The examples from the doc are clumsy at times. Need more convenience routines or a Plots.jl integration. Are you aware of a collection of Makie receipes where one could contribute?

But now back to have the resize in Makie!

bardo84 avatar Oct 01 '21 13:10 bardo84

Looking for this as well. Any hints?

lazarusA avatar Jul 25 '22 14:07 lazarusA

I'd also like a way to make the plot fullscreen in my browser. I tried playing around with JSServe.jl and exporting the plot to a html file, but didn't see any obvious to change the dimensions.

robsmith11 avatar Sep 02 '22 15:09 robsmith11

This is somehow more difficult than it should be! But it's definitely on the wish list!

SimonDanisch avatar Sep 05 '22 12:09 SimonDanisch