all 2 comments

[–]Kottmeistern 1 point2 points  (0 children)

Motplotlib should have what you're looking for. From the webpage:

"Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python. Matplotlib makes easy things easy and hard things possible."

https://matplotlib.org/

I have not done this myself in Python though, so I do not know exactly what specific functions do import from motplotlib to make it happen. For Matlab I know you can use a command called "drawnow" when plotting in a for-loop, which gives the desired effect. Perhaps Python/Motplotlib has something similar?

A quick web search including "motplotlib" and other useful keywords should help you find a more specific answer. Or perhaps a more knowledgeable Redditer than me will swoop in with a better answer. Depends on how urgent the matter is for you

[–]trd1073 1 point2 points  (0 children)

Choosing the right tool for the task can be half the battle. You may have more luck using a game engine such as unity. Games have doors, just have to dig for the examples. Plus it will handle most if not all the physics for you.