Skip to content

rose

plot · scripts/plot/draw/rose.m

: rose (theta)
: rose (theta, nbins)
: rose (theta, centers)
: rose (ax, …)
: h = rose (…)
: [tout, rout] = rose (…)

Draw an angle histogram (rose diagram).

The angles theta are in radians and are wrapped to the interval [0, 2 pi). The circle is divided into nbins equal bins (default 20) starting at angle 0, or into bins centred on the vector centers. The counts are shown as wedges on polar axes.

With two output arguments no plot is drawn; the polar coordinates of the wedge outlines are returned as row vectors, four points (lo, 0) (lo, c) (hi, c) (hi, 0) per bin. With one output argument the handle of the drawn line is returned.