PlotXY Method

Measurement Studio User Interface

PlotXY Method

Syntax

CWPlot.PlotXY xyData [, bXInFirstRow = True]

Purpose

Plots a two-dimensional array of data as an XY plot. The first row is the X data and the second row is the Y data.

Remarks

Use the Plot and Chart methods on a CWPlot object if you want to modify a single plot without affecting the other plots. Use the Plot and Chart methods on the CWGraph object if you want to modify all existing plots.

Parameters

xyData As Variant

Two-dimensional data array with exactly two rows or two columns to plot.

bXInFirstRow As Variant

[Optional] If True, the first row of the array contains the X data and the second row of the array contains a plot of Y data. If False, the first column of the array contains the X data and the second column of the array contains a plot of Y data.

This parameter has a default value of True.

Example

'Plot first row data as X data
'and second row as Y data
CWGraph1.Plots.Item(4).PlotXY xyData, True

See Also

CWGraph.PlotXY