You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when GLMakie draws a plot on my screen (i.e. when I do lines(rand(10), rand(10)), it opens up a new window every time. It opens up a new window in the center of my screen. This is very annoying, as it covers up my terminal and I have to move it every time.
Plots.jl, by contrast, will re-populate an existing window. This means that it pops up, I move the plot window so that it does not cover my terminal, and then every time I call plot it re-plots in the same window. I like this behavior because it is annoying to have to move the window every time in GLMakie.
Any chance you could make drawing a new plot in the current window default behavior?
The text was updated successfully, but these errors were encountered:
I had a chat with @SimonDanisch, and I think GLMakie does currently reuse the existing figure (to the extent possible in GLFW).
However, creating a new plot will always resize the window. It would be nice to reuse the current window dimensions by default (maybe accepting a size hint, to be used if no window exists yet?)
On windows, the position is remembered. Why this isn't the case for OSX isn't really clear. As you can see in the linked functions, we only hide + unhide the window and then resize it to the figure size.
If someone has access to OSX you may want to play around with these functions and try to see if anything can make OSX remember the position.
Remembering the size of the plot is something else, since it would have a more complex interaction with the theme, but would certainly possible as well.
Hi @SimonDanisch, sorry for the confusion. Indeed, the position is being remembered on OSX. As far as I can tell, this feature is fully working. I created a separate issue for the persistent window size feature request: #3767.
Feature description
Currently, when GLMakie draws a plot on my screen (i.e. when I do
lines(rand(10), rand(10))
, it opens up a new window every time. It opens up a new window in the center of my screen. This is very annoying, as it covers up my terminal and I have to move it every time.Plots.jl, by contrast, will re-populate an existing window. This means that it pops up, I move the plot window so that it does not cover my terminal, and then every time I call
plot
it re-plots in the same window. I like this behavior because it is annoying to have to move the window every time in GLMakie.Any chance you could make drawing a new plot in the current window default behavior?
The text was updated successfully, but these errors were encountered: