,System.Collections.Generic.IList{System.Double},System.Int32}},System.String,System.Boolean,System.Boolean)} ,System.Collections.Generic.IList{System.Double},System.Int32},System.String,System.Boolean,System.Boolean)}
ScatterUI(WpfPlot, IObservable<(string? Name, IList? X, IList Y, int Axis)>, string, bool, bool) constructor¶
Defined in
Type: ScatterUI
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 ScatterUI(WpfPlot plot, IObservable<(string? Name, IList<double>? X, IList<double> Y, int Axis)> observable, string color, bool autoscale = true, bool manualscale = false) - 2.
public ScatterUI(WpfPlot plot, (string? Name, IList<double> X, IList<double> Y, int Axis) data, string color, bool autoscale = true, bool manualscale = false)
1. Overload¶
public ScatterUI(WpfPlot plot, IObservable<(string? Name, IList<double>? X, IList<double> Y, int Axis)> observable, string color, bool autoscale = true, bool manualscale = false)
Summary: Initializes a new instance of the ScatterUI class, configuring a scatter plot visualization and subscribing to. observable data updates.
Parameters
| Name | Type | Description |
|---|---|---|
plot | WpfPlot | The WpfPlot control that displays the scatter plot. |
observable | IObservable<(string? Name, IList | An observable sequence providing data updates for the scatter plot, including the series name, X and Y values, and axis assignment. |
color | string | The color used to render the scatter plot line. |
autoscale = true | bool | Indicates whether the plot axes should automatically scale to fit the data. Defaults to true. |
manualscale = false | bool | Indicates whether manual axis scaling is enabled. Defaults to false. |
Remarks
The series name is set from the first emission of the observable sequence. Subsequent updates to the plot are handled automatically as new data arrives. Appearance settings are applied to the plot and its line after initialization.
2. Overload¶
public ScatterUI(WpfPlot plot, (string? Name, IList<double> X, IList<double> Y, int Axis) data, string color, bool autoscale = true, bool manualscale = false)
Summary: Initializes a new instance of the ScatterUI class to display a scatter plot with the specified data and. appearance settings.
Parameters
| Name | Type | Description |
|---|---|---|
plot | WpfPlot | The WpfPlot control where the scatter plot will be rendered. |
data | (string? Name, IList | A tuple containing the series name, X values, Y values, and axis index for the scatter plot. The series name may be null. |
color | string | The color used to display the scatter plot line. |
autoscale = true | bool | Indicates whether the plot axes should automatically scale to fit the data. The default is true. |
manualscale = false | bool | Indicates whether manual axis scaling is enabled. The default is false. |
Remarks
If both autoscale and manualscale are set to true, autoscaling will take precedence. The series name from data is used for
display purposes if provided.