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

Update examples to generate animated plots #19

Open
wheelerMT opened this issue Jun 23, 2024 · 0 comments
Open

Update examples to generate animated plots #19

wheelerMT opened this issue Jun 23, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@wheelerMT
Copy link
Owner

Feature Request

Rather than static plots showing one frame of data, why not make use of all the frames of data generated in the examples and plot a movie of the evolution. This showcases the capabilities of the library better, and is overall more interesting.

Solution

The easiest way to do this is using Matplotlib's [FuncAnimation}(https://matplotlib.org/stable/api/_as_gen/matplotlib.animation.FuncAnimation.html) class, meaning we can rely on dependencies already specified for the library. To do the animation, we can create an imshow of, e.g., the atom density at each frame, and stitch the result into a .gif file. The initial size of the grids may have to be lowered to, e.g., 256 x 256 if the animation takes too long to render.

@wheelerMT wheelerMT added the enhancement New feature or request label Jun 23, 2024
@wheelerMT wheelerMT self-assigned this Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant