Currently I am working on 2 body problem which involves the motion of planet around the sun. In order to do so, in order to do animation I\'ve used FuncAnimation
FuncAnimation