Skip to content

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)

View source

Summary: Initializes plot lines for a collection of signal observables, configuring each line to display its corresponding data points on the plot.

Parameters

NameTypeDescription
observablesIEnumerable? Y, IList X, int Axis)>>A collection of observables, each providing a tuple containing an optional signal name, Y-values, X-values, and the axis index to plot against.
fsintThe sampling frequency, in Hertz, used to configure the plot lines for the signal data.
nSamplesuintThe 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.