loglog (MathScript RT Module Function)

LabVIEW 2011 MathScript RT Module Help

Edition Date: June 2011

Part Number: 373123B-01

»View Product Info

Owning Class: plots

Requires: MathScript RT Module

Syntax

loglog(y)

loglog(x, y)

loglog(x, y, attributes)

loglog(x1, y1, x2, y2, ..., xN, yN)

loglog(x1, y1, x2, y2, ..., xN, yN, attributes)

loglog(y, name1, value1, ..., nameN, valueN)

loglog(x, y, name1, value1, ..., nameN, valueN)

loglog(x1, y1, attributes1, x2, y2, attributes2, ..., xN, yN, attributesN)

obj = loglog(y)

obj = loglog(x, y)

obj = loglog(x, y, attributes)

obj = loglog(x1, y1, x2, y2, ..., xN, yN)

obj = loglog(x1, y1, x2, y2, ..., xN, yN, attributes)

obj = loglog(y, name1, value1, ..., nameN, valueN)

obj = loglog(x, y, name1, value1, ..., nameN, valueN)

obj = loglog(x1, y1, attributes1, x2, y2, attributes2, ..., xN, yN, attributesN)

Description

Displays a double-logarithmic plot. LabVIEW uses a logarithmic scale for both axes. loglog(y) plots the columns of y against the indexes of the columns. If y is complex, loglog(y) plots real(y) against imag(y). If x and y are real vectors, loglog(x, y) plots y against x. loglog(x, y, attributes) plots y against x using the specified attributes. loglog(x1, y1, x2, y2, ..., xN, yN, attributes) plots y1, y2, ..., and yN against x1, x2, ..., and xN, respectively. In this syntax, LabVIEW uses the specified attributes for the last plot and the default attributes for previous plots. loglog(x, y, name1, value1, ..., nameN, valueN) sets the line attributes according to the attribute names and values you specify.

Examples

Inputs

Name Description
x Specifies a vector or matrix you want to plot.
y Specifies a vector or matrix you want to plot.
attributes Specifies valid plot attributes. Order the plot attributes by color, point style, and line style. For example, 'bo-' specifies that the plot is blue, marks points with circles, and uses solid lines. You also can use the line attributes to set the color, point style, line style, and other attributes of the plot. attributes is a string that accepts a combination of the following values.

 'b' Colors the plot blue. 'c' Colors the plot cyan. 'g' Colors the plot green. 'k' Colors the plot black. 'm' Colors the plot magenta. 'r' Colors the plot red. 'w' Colors the plot white. 'y' Colors the plot yellow. '.' Marks points with dots. 'o' Marks points with circles. 'x' Marks points with crosses. '+' Marks points with plus signs. '*' Marks points with asterisks. '-' Uses solid lines. ':' Uses dotted lines. '-.' Uses dashed and dotted lines. '--' Uses dashed lines.
name Specifies the name of the attribute. name is a string.
value Specifies the value of the attribute.

Outputs

Name Description
obj Returns the reference to the line LabVIEW creates. obj is a line object.

Details

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

Examples

X = 1:10;
obj = loglog(2.^X, 3.^X, 'rx:')

X = 1:10;
obj = loglog(2.^X, 3.^X, 'Color', 'm', 'Marker', 's', 'MarkerSize', 4)

Related Topics

Your Feedback!  Poor  |  Excellent    Yes No
 Document Quality?