ScatterGraph Class

Measurement Studio 2012 for Visual Studio 2010 Help

Edition Date: August 2012

Part Number: 372636F-01

»View Product Info
Download Help (Windows Only)

Members See Also


Represents the class for Measurement Studio Windows Forms graphs that accept both x and y data values.

Namespace: NationalInstruments.UI.WindowsForms

Assembly: NationalInstruments.UI.WindowsForms (in NationalInstruments.UI.WindowsForms.dll) Version: 12.0.40.318

Syntax

Visual Basic (Declaration)
<DefaultPropertyAttribute("Plots")> _
Public Class ScatterGraph _
	Inherits XYGraph _
	Implements IScatterGraph

C#
[DefaultPropertyAttribute("Plots")]
public class ScatterGraph : XYGraph, 
	IScatterGraph

Remarks

The ability to specify x and y data values allows you to plot non-monotonically increasing data.

You can use the Plots collection to include multiple ScatterPlot instances on a single graph. With multiple plots, you can plot multiple sets of data in the same plot area. You can determine whether plot colors are assigned by a color generator with the UseColorGenerator property, and you can change the plot color assignment with the PlotLineColorGenerator property.

Use PlotXY to plot a single y value against a single x value or an array of y values against an array of x values. PlotXYAppend plots y values against x values by appending the x and y values to the existing data.

You can plot multiple sets of y data values against a single set of x data values with a single method invocation. Use PlotXYMultiple to plot a 2D array of y values against an array of x values. PlotXYAppendMultiple behaves in much the same way, except that it appends the data to the existing data for plotting. PlotYXMultiple plots a 2D array of x values against an array of y values. PlotYXAppendMultiple behaves similarly but appends the data to the existing data.

Note: For more information about the scatter graph control, refer to Using the Measurement Studio Windows Forms Graph .NET Controls or Key Measurement Studio Windows Forms Scatter and Waveform Graph .NET Control Features.

Inheritance Hierarchy

System.Object
    System.MarshalByRefObject
        System.ComponentModel.Component
            System.Windows.Forms.Control
                NationalInstruments.UI.WindowsForms.ControlBase
                    NationalInstruments.UI.WindowsForms.Graph
                        NationalInstruments.UI.WindowsForms.XYGraph
                            NationalInstruments.UI.WindowsForms.ScatterGraph

Thread Safety

Only the following members are safe for multithreaded operations: BeginInvoke, EndInvoke, Invoke, InvokeRequired, and CreateGraphics.

See Also

Reference

ScatterGraph Members

NationalInstruments.UI.WindowsForms Namespace

Other Resources

WAS THIS ARTICLE HELPFUL?

Not Helpful