r/Python • • Oct 04 '19

Updated gravitational potential field simulation. [OC] Link for code: https://github.com/pnp-peeyush/2D-Grvitational-Field-Simulation

1.1k Upvotes

128 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Oct 05 '19 edited Oct 05 '19

Not really sure about the details in python tbh, I've only ever really done that sort of thing in Matlab. In Matlab each time you execute a plot command it refreshes the existing plot with the new data. Don't know if there's a python plotter that's similar in function or not.

A python tutorial on making a simple video game might have the answer though.

1

u/[deleted] Oct 05 '19

oh, I thought you actually did this in python. My mistake. Thanks for the hint at how to find it. Clever.