<< axes | Graphics functions | bar >> |
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, ...) |
sets the limits in the X, Y, Z and color axes.
sets only the limits in the X, Y, Z.
sets only the limits in the X, Y.
'tight', 'equal', 'image', 'square', 'fill', 'vis3d' or 'normal' (default).
axes.
'off' or 'on' (default).
'manual' (turns off automatic scaling of the axis based on the children of the current axis object) or 'auto' (choose automatically all axis limits) .
For 2D: [xmin, xmax, ymin, ymax] or for 3D: [xmin, xmax, ymin, ymax, zmin, zmax]
axes set axis limits and appearance.
f = figure();
t = 0:0.01:2*pi;
x = cos(t);
subplot(2, 2, 1);
plot(t, x);
title ('normal plot');
subplot(2, 2, 2);
plot (t, x);
title('axis square');
axis('square');
subplot(2, 2, 3);
plot (t, x);
title('axis equal');
axis('equal');
subplot(2, 2, 4);
plot (t, x);
title('normal plot again');
axis('normal');
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET