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

plotf (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

plotf(f)

plotf(f, attributes)

plotf(f, r)

plotf(fx, fy)

plotf(f, r, attributes)

plotf(fx, fy, attributes)

plotf(fx, fy, r)

plotf(fx, fy, r, attributes)

Legacy Names: ezplot and fplot

Description

Plots a function over the specified region.

Examples

Inputs

Name Description
f, fx, fy Specifies the function you want to plot. f is a string that represents a function of one or two variables. If f is an expression of a single variable x, plotf plots y = f(x). If f is an expression of two variables x and y, plotf plots f(x, y) = 0. If you specify fx and fy, plotf plots fx and fy as the parametrically defined planar curve (fx(t), fy(t)).
r Specifies the region of the plot. If f is a parametrically defined planar curve, the default is [0, 2*pi]. Otherwise, the default is [-2*pi, 2*pi].
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. 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.

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine No (always ignored)
Supported on RT targets No

Examples

f = 'sin(x)';
plotf(f)

fx = 'sin(sinc(t*t))*cos(t)';
fy = 'sin(sinc(t*t))*sin(t)';
plotf(fx, fy)

f = 'x^2+y^2-1';
r = [-1.2, 1.2, -0.8, 0.8];
plotf(f, r)

Related Topics

plot
plotf_3d
plotf_surf


 

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