axis
Set axis limits and aspect ratios.
Syntax
axis([xmin, xmax, ymin, ymax, zmin, zmax, cmin, cmax])
axis([xmin, xmax, ymin, ymax, zmin, zmax])
axis([xmin, xmax, ymin, ymax])
axis(style)
axis(mode)
axis(visibility)
lim = axis()
axis(ax, ...)
Input argument
[xmin, xmax, ymin, ymax, zmin, zmax, cmin, cmax] - sets the limits in the X, Y, Z and color axes.
[xmin, xmax, ymin, ymax, zmin, zmax] - sets only the limits in the X, Y, Z.
[xmin, xmax, ymin, ymax] - sets only the limits in the X, Y.
style - 'tight', 'equal', 'image', 'square', 'fill', 'vis3d' or 'normal' (default).
cax - axes.
visibility - 'off' or 'on' (default).
mode - 'manual' (turns off automatic scaling of the axis based on the children of the current axis object) or 'auto' (choose automatically all axis limits) .
Output argument
lim - For 2D: [xmin, xmax, ymin, ymax] or for 3D: [xmin, xmax, ymin, ymax, zmin, zmax]
Description
axes set axis limits and appearance.
Example
See also
History
1.0.0
initial version
Author
Allan CORNET
Last updated