Skip to content

quiver

plot · scripts/plot/draw/quiver.m

: quiver (u, v)
: quiver (x, y, u, v)
: quiver (…, scale)
: quiver (…, linespec)
: quiver (…, "filled")
: quiver (…, name, value)
: quiver (ax, …)
: h = quiver (…)

Draw a two-dimensional vector field as arrows.

The arrow at (x, y) has the components (u, v). x and y are matrices of the size of u, or vectors of length columns (u) and rows (u); by default the grid indices are used. The arrows are scaled automatically so that the longest one is about as long as the grid spacing (factor ‘AutoScaleFactor’, default 0.9); a scalar scale replaces that factor and 0 switches scaling off. Entries with NaN components draw no arrow.

The result is a group object with the properties XData, YData, UData, VData, AutoScale, AutoScaleFactor, MaxHeadSize, ShowArrowHead, Color, LineStyle and LineWidth.