,System.Collections.Generic.IList{System.Double>
Defined in Type: LiveChartViewModel
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 void InitializeLinesForSignalObservablesPoints(IEnumerable<IObservable<(string? Name, IList<double>? Y, IList<double> X, int Axis)>> observables, int fs, uint nSamples)
Summary: Initializes plot lines for a collection of signal observables, configuring each line to display its corresponding data points on the plot.
Parameters
| Name | Type | Description |
|---|---|---|
observables | IEnumerable | A collection of observables, each providing a tuple containing an optional signal name, Y-values, X-values, and the axis index to plot against. |
fs | int | The sampling frequency, in Hertz, used to configure the plot lines for the signal data. |
nSamples | uint | The number of samples to display for each signal on the plot. Must be a positive value. |
Remarks
Each observable is associated with a plot line and UI element, allowing real-time visualization of signal data. The method configures the plot for numeric X-axis values and assigns colors to each line for legend differentiation.