Animation Update¶
The Function is the update method for the animation. It has proven to be enough but for better animation on has to write its own update function and pass it on to the animation class in the iterator class.
-
animate.update_line(vertex, line, line_cm)¶ Update method for the matplotlib animator class
This function purely serves as a method for inputting the new data into the animation.
Parameters: num: int
Position in the animation frame counter
vertex: dictionary
Dictionary of all the vertices.
line: plot line
Line of the vertices which are updated
line_cm: plot line
Line of the CM, that is updated.
Returns: line: plot line
Line of the vertices, which was handed to the method
line_cm: plot line
Line of the CM, which was handed to the method