2. Basic Animation
In this section, we shall visualize a 1-dimensional movement of an object, say, an airplane. To run each of the following projects, make one program in vscode
, say, program.py
, and then run in vscode terminal $ python program.py
.
2.1. Simple Linear X-Y Plot
Let us begin by plotting increasing values of x and y.
|
2.2. For-Loop-Animated X-Y Plot
This can be animated by adding the following lines.
|