Skip to content

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

public SignalXY_UI(WpfPlot plot, (string? Name, IList<double>? Value, IList<double> DateTime, int Axis) data, string color, bool autoscale = true, bool manualscale = false, IObservable<Coordinates>? coordinatesObs = null)

View source

Summary: Initializes a new instance of the SignalXY_UI class to display an XY signal on the specified WpfPlot using the. provided data and appearance settings.

Parameters

NameTypeDescription
plotWpfPlotThe WpfPlot control on which the signal will be rendered.
data(string? Name, IList? Value, IList DateTime, int Axis)A tuple containing the signal's name, Y-axis values, corresponding X-axis DateTime values, and the axis index to plot against. The Value and DateTime lists must not be null.
colorstringThe color used to render the signal line and related chart elements.
autoscale = trueboolIndicates whether the plot should automatically scale its axes to fit the signal data. The default is true.
manualscale = falseboolIndicates whether manual axis scaling is enabled for the plot. The default is false.
coordinatesObs = nullIObservable?An optional observable sequence of mouse coordinates. If provided, the plot will update crosshair and marker positions in response to mouse movements.

Remarks

If a coordinates observable is supplied, the plot will display a crosshair and marker at the nearest data point to the mouse position, updating in real time. The autoscale and manualscale parameters control axis scaling behavior and can be used together to customize how the plot responds to data changes.

Exceptions

TypeCondition
System.ArgumentNullExceptionThrown if data.Value.Value or data.DateTime.DateTime is null.