Skip to content

,System.Collections.Generic.IList{System.Double},System.Int32}},System.String,System.Boolean,System.Boolean,System.Boolean)} ,System.Int32,System.Int32}},System.String,System.Boolean,System.Boolean,System.Boolean)}

DataLoggerUI(WpfPlot, IObservable<(string? Name, IList? X, IList Y, int Axis)>, string, bool, bool, bool) constructor

Defined in

Type: DataLoggerUI 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

Overloads

  • 1. public DataLoggerUI(WpfPlot plot, IObservable<(string? Name, IList<double>? X, IList<double> Y, int Axis)> observable, string color, bool autoscale = true, bool manualscale = false, bool points = false)
  • 2. public DataLoggerUI(WpfPlot plot, IObservable<(string? Name, IList<double>? X, int Axis, int nPoints)> observable, string color, bool autoscale = true, bool manualscale = false, bool points = false)

1. Overload

public DataLoggerUI(WpfPlot plot, IObservable<(string? Name, IList<double>? X, IList<double> Y, int Axis)> observable, string color, bool autoscale = true, bool manualscale = false, bool points = false)

View source

Summary: Initializes a new instance of the DataLoggerUI class, configuring a data logger visualization for a WpfPlot. using data from an observable sequence.

Parameters

NameTypeDescription
plotWpfPlotThe WpfPlot control where the data logger visualization will be rendered.
observableIObservable<(string? Name, IList? X, IList Y, int Axis)>An observable sequence providing data points and metadata for the logger. The first emission with a non-empty name sets the logger's item name.
colorstringThe color used for the data logger's plot line and appearance.
autoscale = truebooltrue to automatically scale the plot axes to fit incoming data; otherwise, false.
manualscale = falsebooltrue to enable manual axis scaling; otherwise, false.
points = falsebooltrue to display individual data points on the plot; otherwise, false.

Remarks

The constructor subscribes to the observable to set the logger's item name from the first available emission. Appearance settings are applied to the plot upon initialization. Thread safety is ensured by observing on the main thread scheduler.

2. Overload

public DataLoggerUI(WpfPlot plot, IObservable<(string? Name, IList<double>? X, int Axis, int nPoints)> observable, string color, bool autoscale = true, bool manualscale = false, bool points = false)

View source

Summary: Initializes a new instance of the DataLoggerUI class, configuring the plot and data logger to visualize. observable data streams with customizable appearance and scaling options.

Parameters

NameTypeDescription
plotWpfPlotThe WpfPlot control used to display the data visualization.
observableIObservable<(string? Name, IList? X, int Axis, int nPoints)>An observable sequence providing data points and metadata to be visualized. The first emission with a non-empty name sets the chart's item name.
colorstringThe color used for the data logger's plot line and appearance.
autoscale = truebooltrue to enable automatic axis scaling based on incoming data; otherwise, false.
manualscale = falsebooltrue to enable manual axis scaling; otherwise, false.
points = falsebooltrue to display individual data points on the plot; otherwise, false.

Remarks

The constructor subscribes to the observable to set the chart's item name from the first valid emission and configures appearance and scaling according to the provided parameters. Thread safety is ensured by observing on the main thread scheduler.