Skip to content

rlim

plot · scripts/plot/appearance/rlim.m

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

Query or set the radial limits of a polar axes.

rlim returns the present radial limits as a two-element row vector [rmin, rmax]. Passing a two-element increasing numeric vector sets those limits on the current (or given) polar axes.

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

polarplot (linspace (0, 2*pi, 50), abs (cos (linspace (0, 2*pi, 50))));
rlim ([0 1.5])
lim = rlim ()
     ⇒   lim = [0 1.5]