zlim
set or get z-axis limits.
📝Syntax
lims = zlim()
zlim([zmin, zmax])
zlim('auto')
zlim('manual')
m = zlim('mode')
zlim(ax, ...)
📥Input Arguments
Parameter Description
[zmin, zmax] z-coordinates: vector or matrix.
'auto' enable automatic limit selection.
'manual' freeze the z-axis limits at their current value.
'mode' returns the current z-axis limits mode.
ax a scalar graphics object value: parent container, specified as a axes.
📤Output Arguments
Parameter Description
lims two-element vector: [zmin, zmax]
m 'auto' or 'manual'.
📄Description

zlim get or set the limits of the z-axis for the current plot.

💡Examples
x = linspace(-1, 1);
y = sin(2*pi*x);
plot(x, y);
lim = zlim()
m = zlim('mode')
🔗See Also
axesaxis
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub