PlotY Method

Measurement Studio User Interface

PlotY Method

Syntax

CWGraph.PlotY yData [, xFirst = 0] [, xInc = 1] [, bPlotPerRow = True]

Purpose

Plots Y data evenly spaced on the x axis relative to the index in the array. Alternatively, you can use the xFirst and xInc parameters to specify the X value at the first data point and the incremental X value between data points.

Remarks

Pass in a 2D array to plot several rows of data at once.

The PlotY method uses plots from the CWGraph.Plots collection that are marked as multiplots. If there are not enough plots available, it uses temporary multiplots.

Parameters

yData As Variant

The data to plot. yData can be a one-dimensional array that updates the first plot on the graph or a two-dimensional array that updates the first n plots on the graph.

xFirst As Variant

[Optional] The X value for the first point in each plot.

This parameter has a default value of 0.

xInc As Variant

[Optional] The amount to increment X for points in each plot. The value can be positive or negative.

This parameter has a default value of 1.

bPlotPerRow As Variant

[Optional] If True, each row of the yData array is equivalent to one plot. If False, each column of the yData array is equivalent to one plot.

This parameter has a default value of True.

See Also

CWPlot.PlotY