ChartXvsY Method

Measurement Studio User Interface

ChartXvsY Method

Syntax

CWPlot.ChartXvsY xData, yData

Purpose

Charts an array of Y data against an array of X data. This method is similar to the PlotXvsY method, except that the system does not delete the previously plotted data until the amount stored is greater than the CWGraph.ChartLength property specifies.

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

xData As Variant

One-dimensional array of X data.

yData As Variant

One-dimensional array of Y data.

Example

CWGraph1.Plots.Item(2).ChartXvsY xData, yData

See Also

PlotXvsY

CWGraph.ChartLength