Vector fields assign a magnitude and direction $(u, v)$ to every spatial point $(x, y)$. `plt.quiver()` draws an arrow at each grid coordinate, while `plt.streamplot()` traces continuous fluid streamlines.
Observing iron filings align along magnetic field lines around a bar magnet.
`X, Y` are grid coordinate origins; `U, V` are horizontal and vertical vector components.
plt.quiver(X, Y, U, V, color='#6366F1')Avoid the top errors and bad plotting practices that trip up new Python developers
Switch from abstract numbers to relatable Cricket, Cinema & Business charts
Write Matplotlib code to solve the objective and see your live plot render
Create a 2D meshgrid for `x=np.linspace(-1, 1, 10)`, `y=np.linspace(-1, 1, 10)` and plot `plt.quiver(X, Y, X, Y, color='#6366F1')` with title 'Radial Field'.
✓ quiver✓ meshgridTest your understanding to unlock the lesson completion badge