Skip to content

zlim

plot · scripts/plot/appearance/zlim.m

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

Query or set the limits of the z axis.

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