Skip to content
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

How to use the command to close the window? #2984

Closed
13299118606 opened this issue May 27, 2023 · 2 comments
Closed

How to use the command to close the window? #2984

13299118606 opened this issue May 27, 2023 · 2 comments

Comments

@13299118606
Copy link

13299118606 commented May 27, 2023

How to use the command to close the window, we know that
display(GLMakie.Screen(), figure)
will display the figure window,

but is there any close(figure) command to close the figure window function, if you use empty!(f) to clear f , but the window is still on top, is it possible to close the window invisible only by clicking the mouse?
GLMakie.closeall() will close all figure window

I have two purposes, 1 is to clean up the memory, 2 is to close the window directly through the command, just like the close fig function of matlab

@asinghvi17
Copy link
Member

screen = display(GLMakie.Screen(), fig)
sleep(5) # do something
close(screen)

@13299118606
Copy link
Author

screen = display(GLMakie.Screen(), fig)
sleep(5) # do something
close(screen)

Thank you, this is to hide the figure window, will it save memory?

display(GLMakie.Screen(), fig) will display fig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants