Skip to content

Animation error #18

Open
Open

Description

@griff10000

The simulation seems to run ok. However a plot at t=0 is plotted but no animation.

The following warning is displayed:

UserWarning: Animation was deleted without rendering anything. This is most likely not intended. To prevent deletion, assign the Animation to a variable, e.g. anim, that exists until you have outputted the Animation using plt.show() or anim.save().
warnings.warn(

I have tried using plt.show() or anim.save(). but no luck.

Activity

  1. MarkDPhysics commented on Jan 9, 2024

    @MarkDPhysics

    I have the same problem when running the example file 2D_double_slit.py, but I get no warning. I'm using anaconda3. Plots work ok, but animation shows only the the starting time step.

  2. marl0ny commented on Jan 10, 2024

    @marl0ny
    Member

    I have the same problem when running the example file 2D_double_slit.py, but I get no warning. I'm using anaconda3. Plots work ok, but animation shows only the the starting time step.

    If you are using Spyder specifically, from this Stack Overflow answer you should type and enter %matplotlib qt in the console first before running the file.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions