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

Screenshot does not behaves reliably in glvs script #254

Open
dohyun-cse opened this issue Apr 5, 2023 · 2 comments
Open

Screenshot does not behaves reliably in glvs script #254

dohyun-cse opened this issue Apr 5, 2023 · 2 comments
Assignees

Comments

@dohyun-cse
Copy link

Following this tutorial, I tried to make a .gif file from a series of solutions.

However, when I check .png files, one of every three files is just empty.

I get the following warning from GLVis when I run the script:

MFEM Warning: Screenshot: Reading from the front buffer is unreliable. Resulting screenshots may be incorrect.
But there is no suggestion for a better way to save the figure.

What is a proper way to save figures using glvs scripts?

@dohyun-cse
Copy link
Author

I managed to resolve this issue by replacing

keys b
to
keys ~b

@v-dobrev
Copy link
Member

v-dobrev commented Apr 6, 2023

If you are loading different mesh and/or solution files before each screenshot, you don't need the command keys b.

In the tutorial we use the same mesh and vector solution (which defines a backward displacement), so we use keys b to change what state between the no-backward-displacement and full-backward-displacement we draw, see the key b description in section "2D vector data" in https://github.com/GLVis/glvis/blob/master/README.md.

That said, there is still probably some issue with the keys not being fully processed in the script as intended and we probably need to track it down and resolve it.

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

No branches or pull requests

2 participants