Make moveable plotted point with matplotlib | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Make moveable plotted point with matplotlib

I am trying to make a simulation with matplotlib.pyplot. I am currently using a for ... in ... loop, but it is making multiple instances of the window.

28th Jul 2018, 6:31 AM
Edwin Pratt
Edwin Pratt - avatar
2 Answers
+ 1
You need to use matplotlib.animation module. There is a good example here: https://matplotlib.org/examples/animation/simple_anim.html
28th Jul 2018, 11:55 AM
strawdog
strawdog - avatar
+ 1
strawdog Thanks buddy!
28th Jul 2018, 12:42 PM
Edwin Pratt
Edwin Pratt - avatar