Owning Class: plots
Requires: MathScript RT Module
axis
axis auto
axis equal
axis ij
axis manual
axis normal
axis off
axis on
axis square
axis xy
axis([minx, maxx, miny, maxy])
axis([minx, maxx, miny, maxy, minz, maxz])
Scales the axes of a plot by defining ranges for the axis components. axis returns the current axis settings.
You can specify axis on, axis off, axis auto, axis manual, axis ij, axis xy, axis equal, axis square, and axis normal only for single graph windows. axis on shows the axis scales, tick marks, and labels. axis off hides the axis scales, tick marks, and labels. The default is axis on. axis auto fits the axis scales to the plot. axis manual specifies that LabVIEW does not fit the axis scales automatically to the plot. You must specify the ranges for the axis components. The default is axis auto. axis ij reverses the positions of the minimum and maximum values on the y-axis. axis xy returns the minimum and maximum values on the y-axis to their original positions. The default is axis xy. axis equal sets the x- and y-axis to the same unit length. axis square makes the plot area square. axis normal makes the plot area fit the plot window. The default is axis normal.
| Name | Description |
|---|---|
| minx | Specifies the minimum x-value. minx is a real scalar. |
| maxx | Specifies the maximum x-value. maxx is a real scalar. |
| miny | Specifies the minimum y-value. miny is a real scalar. |
| maxy | Specifies the maximum y-value. maxy is a real scalar. |
| minz | Specifies the minimum z-value. minz is a real scalar. This input is available only for 3D plots. |
| maxz | Specifies the maximum z-value. maxz is a real scalar. This input is available only for 3D plots. |
This function is not supported in the LabVIEW Run-Time Engine if you request an output from the function. Either do not request an output or remove this function from scripts before you build a stand-alone application or shared library.
X = 0:0.1:1;
Y = X.*X;
plot(X, Y, 'r')
legend('quadratic')
axis([-1, 2, -1, 2])