Skip to content

compass

Compass plot — vectors radiating from origin.

h = compass(u, v, ...)
h = compass(z, ...)

Draws arrows from the origin to each (u, v) point (or to each complex z). Useful for visualizing direction-and-magnitude data on a circular axis.

compass([1 0 -1 0], [0 1 0 -1]) % four cardinal directions
  • polar — Plot in polar coordinates.
  • feather — Feather plot — vectors at regular x positions.
  • quiver — 2D vector field plot.