Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove GLMakie.Screen() requirement for opening a new window. #2981

Closed
nathanrboyer opened this issue May 25, 2023 · 3 comments
Closed

Remove GLMakie.Screen() requirement for opening a new window. #2981

nathanrboyer opened this issue May 25, 2023 · 3 comments
Labels
enhancement Feature requests and enhancements GLMakie This relates to GLMakie.jl, the OpenGL backend for Makie. planning For discussion and planning development

Comments

@nathanrboyer
Copy link

This was suggested in the original pull request but not implemented for some reason.
#1771 (comment)

Will you consider having display(fig1); display(fig2) open two windows without the need to remember/write display(GLMakie.Screen(), figure_or_scene)? It seems to me that a figure should always be associated with a separate window.

If not automatically every time, then maybe something easier to remember like a keyword argument display(fig2, new_window=true)?

(I would like to see the AlgebraOfGraphics draw function automatically open new windows too. I don't know if that would happen implicitly with this change or not.)

@jkrumbiegel
Copy link
Member

This seems like something that should be a settable preference to me. Some people will prefer a new window every time, some won't because it clutters their workspace. I also don't think display(GLMakie.Screen(), figure_or_scene) is easy to remember.

@dav2017
Copy link

dav2017 commented Jul 26, 2023

You can also create your own shortcut command, eg.:

dispnew(figure) = display(GLMakie.Screen(), figure)

@bc0n
Copy link
Contributor

bc0n commented Nov 1, 2023

I was glad to discover just now that Makie can display multiple windows, which is to say that the single-window default behavior is not what I expected. For instance, Matlab uses the figure handle to control where data is plotted, drawing the window at the first figure() or plot() command without an explicit display().
If display() has different arguments it should clearly open multiple windows, while calling display multiple times on the same figure is redundant or an indirect attempt to animate the window.

@ffreyer ffreyer added enhancement Feature requests and enhancements planning For discussion and planning development GLMakie This relates to GLMakie.jl, the OpenGL backend for Makie. labels Aug 26, 2024
@MakieOrg MakieOrg locked and limited conversation to collaborators Aug 26, 2024
@ffreyer ffreyer converted this issue into discussion #4249 Aug 26, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
enhancement Feature requests and enhancements GLMakie This relates to GLMakie.jl, the OpenGL backend for Makie. planning For discussion and planning development
Projects
None yet
Development

No branches or pull requests

5 participants