Introduction
The init function sets the starting state for an animation. It prepares the plot before the animation frames update.
When you want to clear or reset the plot before each animation starts.
When you need to set initial data or styles for animated objects.
When you want to improve animation performance by initializing static parts once.
When using FuncAnimation in matplotlib to create smooth animations.