,System.Collections.Generic.IList{System.Double>
Defined in Type: SignalXY_UI
Namespace: CrissCross.WPF.Plot
Assembly: CrissCross.WPF.Plot.dll
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)
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
| Name | Type | Description |
|---|---|---|
plot | WpfPlot | The WpfPlot control on which the signal will be rendered. |
data | (string? Name, IList | 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. |
color | string | The color used to render the signal line and related chart elements. |
autoscale = true | bool | Indicates whether the plot should automatically scale its axes to fit the signal data. The default is true. |
manualscale = false | bool | Indicates whether manual axis scaling is enabled for the plot. The default is false. |
coordinatesObs = null | IObservable | 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
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown if data.Value.Value or data.DateTime.DateTime is null. |