Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

axis (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: plots

Requires: MathScript RT Module



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.


The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine No (returns error or is ignored)
Supported on RT targets No


X = 0:0.1:1;
Y = X.*X;
plot(X, Y, 'r')
axis([-1, 2, -1, 2])

Related Topics



Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit