CWPlot

Measurement Studio User Interface

CWPlot

The CWPlot object defines the plot for the CWGraph control. Its properties determine the appearance of the data. New plots use settings from the CWGraph.PlotTemplate object.

Use the plot methods on a CWPlot object to display one set of data. To pass more than one set of data at a time, use the plot methods on the CWGraph.

Properties

AutoScaleSpecifies if the extent of the data in the plot affect the extent of an autoscaling axis.
BasePlotSpecifies a plot to use for Y values when either the FillToBase or LineToBase property is enabled.
BaseValueSpecifies the Y value used to fill the space between the base plot and the x axis when either the FillToBase or LineToBase property is enabled.
DefaultPlotPerRowSpecifies the default value used by the PlotXY and ChartXY methods if the optional bXInFirstRow parameter is omitted.
DefaultxFirstSpecifies the default value used by the PlotY method if the optional xFirst parameter is omitted.
DefaultxIncSpecifies the default value used by the PlotY and ChartY methods if the optional xInc parameter is omitted.
EnabledSpecifies if the plot generates mouse events when CWGraph.TrackMode = cwGTrackAllEvents and the plot is visible.
FillColorSpecifies the color to use for filling to the specified BaseValue or BasePlot values.
FillToBaseFills the area between the plot and the values set for CWPlot.BaseValue or CWPlot.BasePlot.
LineColorSpecifies the color of line that connects points in the plot.
LineStyleSpecifies the style of lines for connecting points on a plot.
LineToBaseSpecifies if lines connect the data points to the values specified by CWPlot.BaseValue or CWPlot.BasePlot.
LineToBaseColorSpecifies the color of lines connecting data points to the values specified by CWPlot.BaseValue or CWPlot.BasePlot.
LineWidthSpecifies the width of the plotting line. The width range is 1 to 5.
MultiPlotDetermines if the CWGraph plot or chart methods can use this plot.
NameSpecifies the name of the plot.
PointColorSpecifies the color of the points on a plot.
PointStyleSpecifies the image drawn at each point on a plot.
TempPlotSpecifies if a plot can be discarded if the next CWGraph plot or chart method does not need it.
VisibleSpecifies if the plot is visible or hidden.
XAxisSpecifies the x axis for a plot. This is a read-only property.
XYDataDisplays data from an external source in a plot on a graph as it would if you called the PlotXY method.
XYDataAppendDisplays data from an external source in a chart as it would if you called the ChartXY method.
YAxisSpecifies the y axis for a plot.
YDataDisplays data from an external source in a plot on a graph as it would if you called the PlotY method.
YDataAppendDisplays data from an external source in a chart as it would if you called the ChartY method.

Methods

ChartXvsYCharts 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.
ChartXYCharts a two-dimensional array of data as an XY chart. This method is similar to the PlotXY method, except that the system does not delete the previously plotted data until the amount stored is greater than the CWGraph.ChartLength property specifies.
ChartYCharts a 1D array of data. This method is similar to the PlotY method, except that the system does not delete the previously plotted data until the amount stored is greater than the CWGraph.ChartLength property specifies.
ClearDataClears the data currently displayed in the plot.
PlotXvsYPlots an array of Y data against an array of X data.
PlotXYPlots 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.
PlotYPlots a one-dimensional array of data.

See Also

CWPlots