This repo is linked to the article "Simulating a 3D Solar System In Python Using Matplotlib" on The Python Coding Book Blog.
It contains the final version of the code described in the article. You can run the scripts simple_solar_system.py
and binary_star_system.py
. The modules solar_system_3d.py
and vectors.py
contain the class definitions. For more detail, read the article linked above.