Flow fields
The Lorenz attractor
Two nearby starting points trace the wings of the Lorenz butterfly. The blue and yellow traces start almost together and separate as the solutions evolve. Orbit the camera to see the depth of each wing.
ax.streamline integrates the field from one seed. Use ax.streamlines(f, seeds=...) to start several paths with the same style. dt sets the integration step, steps gives the number of steps, and stride controls which integration samples become anchors for the smooth curve. StreamlineFlash takes a path and a progress signal from 0 to 1. Use span=1 to draw the entire trace before erasing it from the starting point. point_on_path3d samples a world position on the curve, as shown by the markers at the endpoints.
See Vector fields to show the flow direction at points on a grid.