Skip to content

thetalim

plot · scripts/plot/appearance/thetalim.m

: lim = thetalim ()
: thetalim (lim)
: thetalim (ax, …)

Query or set the angular limits of a polar axes.

thetalim returns the present theta limits as a two-element row vector [thmin, thmax] in degrees. Passing a two-element increasing numeric vector sets those limits on the current (or given) polar axes.

Theta limits apply only to polar axes. Limit mode strings such as "auto" are not yet supported.

polarplot (linspace (0, pi, 40), ones (1, 40));
thetalim ([0 180])
lim = thetalim ()
     ⇒   lim = [0 180]