Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

plotyy (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the plots class.

Syntax

plotyy(x1, y1, x2, y2)

plotyy(x1, y1, x2, y2, type)

plotyy(x1, y1, x2, y2, type1, type2)

Description

Generates a plot with both left and right y-axes. plotyy(x1, y1, x2, y2) plots y1 against x1 with the left y-axis and y2 against x2 with the right y-axis.

Details

Examples

Inputs

Name Description
x1 Specifies a vector or matrix you want to plot.
y1 Specifies a vector or matrix you want to plot.
x2 Specifies a vector or matrix you want to plot.
y2 Specifies a vector or matrix you want to plot.
type Specifies a valid plot type. type is a string that accepts the following values.

'bar' Generates a bar plot.
'loglog' Generates a double-logarithmic plot.
'plot' (default) Generates a standard plot.
'semilogx' Generates a plot with a logarithmic x-scale.
'semilogy' Generates a plot with a logarithmic y-scale.
'stem' Generates a stem plot.
type1 Specifies a valid plot type for x1 and y1. type1 accepts the same values as the type input.
type2 Specifies a valid plot type for x2 and y2. type2 accepts the same values as the type input.

Details

This function is not supported in the LabVIEW Run-Time Engine. This function can remain in your scripts when you build a stand-alone application or shared library, but the LabVIEW Run-Time Engine does not execute this function.

Examples

x = 0:0.1:2*pi;
y1 = x;
y2 = 0.1*sin(5*x).*x;
plotyy(x, y1, x, y2)

Related Topics

plot


Resources


 

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