Skip to content

xlim

plot · scripts/plot/appearance/xlim.m

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

Query or set the limits of the x axis.

xlim 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 xlim ("mode") and xlim ("method") report them.