Skip to content

ylim

plot · scripts/plot/appearance/ylim.m

: lim = ylim ()
: ylim (lim)
: ylim (option)
: m = ylim ("mode")
: ylim (ax, …)

Query or set the limits of the y axis.

ylim returns the present limits as a row vector. A two element increasing vector sets them (the limit mode becomes "manual"); an infinite entry leaves that side automatic. "auto" and "manual" select the limit mode, "tickaligned", "tight" and "padded" choose the limit method, and ylim ("mode") and ylim ("method") report them.