Class PlotSeries
- Namespace
- PluginUI
- Assembly
- PluginUI.dll
A curve of a Plot: a function sampled across the width, or explicit points.
public sealed class PlotSeries
- Inheritance
-
PlotSeries
- Inherited Members
Constructors
PlotSeries(IReadOnlyList<Point>, Color?)
Creates a series from points (data coordinates).
public PlotSeries(IReadOnlyList<Point> points, Color? color = null)
Parameters
pointsIReadOnlyList<Point>colorColor?
PlotSeries(Func<double, double>, Color?)
Creates a series from a function y = f(x).
public PlotSeries(Func<double, double> function, Color? color = null)
Parameters
Properties
Color
Color (null = theme accent).
public Color? Color { get; set; }
Property Value
Fill
Fills between the curve and the FillBaseline.
public bool Fill { get; set; }
Property Value
Function
Function (null when Points is used).
[Browsable(false)]
public Func<double, double>? Function { get; set; }
Property Value
IsVisible
Hidden series are not drawn.
public bool IsVisible { get; set; }
Property Value
Name
Optional legend name.
public string? Name { get; set; }
Property Value
Points
Points in data coordinates (null when Function is used).
public IReadOnlyList<Point>? Points { get; set; }
Property Value
Thickness
Line thickness.
public float Thickness { get; set; }