Vector Fields

Quiver, compass, feather, and stream plots

Vector fields can model velocity, magnetic force, fluid motion, and gradients. Visualize vector fields in a 2-D or 3-D view using the quiver, quiver3, and streamline functions. You can also display vectors along a horizontal axis or from the origin.

Three figures showing quiver, contour, and streamline plots


expand all

quiverQuiver or vector plot
quiver33-D quiver or vector plot
compassArrows emanating from origin
featherArrows from x-axis
streamlinePlot streamlines from 2-D or 3-D vector data
streamslicePlot streamlines in slice planes


Quiver PropertiesQuiver chart appearance and behavior
Line PropertiesChart line appearance and behavior


Combine Contour Plot and Quiver Plot

Display contour lines and gradient vectors on the same plot.

Display Streamlines Using Vector Data

Visualize air currents in 3-D using streamlines, slice planes, and contours on the same plot.

Create Stream Particle Animations

Visualize the speed and direction of particles within vector fields using streamlines.