Class DataStreamerSource
- Namespace
- ScottPlot.DataSources
- Assembly
- ScottPlot.dll
public class DataStreamerSource
- Inheritance
-
DataStreamerSource
- Inherited Members
- Extension Methods
Constructors
DataStreamerSource(double[])
public DataStreamerSource(double[] data)
Parameters
data
double[]
Properties
CountTotal
The total number of data points added
public int CountTotal { get; }
Property Value
CountTotalOnLastRender
Total of data points added the last time this plottable was rendered. This can be compared with CountTotal to determine if a new render is required.
public int CountTotalOnLastRender { get; set; }
Property Value
Data
Fixed-length array used as a circular buffer to shift data in at the position defined by NextIndex. Values in this array should not be modified externally if ManageAxisLimits is enabled.
public double[] Data { get; }
Property Value
- double[]
DataMax
Maximum value of all known data (not just the data in view)
public double DataMax { get; }
Property Value
DataMin
Minimum value of all known data (not just the data in view)
public double DataMin { get; }
Property Value
Length
The number of visible data points to display
public int Length { get; }
Property Value
NewestIndex
Index in Data holding the newest data point
public int NewestIndex { get; }
Property Value
NewestPoint
Value of the most recently added data point
public double NewestPoint { get; }
Property Value
NextIndex
Index in Data where the next point will be added
public int NextIndex { get; }
Property Value
OffsetX
public double OffsetX { get; set; }
Property Value
OffsetY
public double OffsetY { get; set; }
Property Value
SamplePeriod
public double SamplePeriod { get; set; }
Property Value
Methods
Add(double)
Shift in a new Y value
public void Add(double value)
Parameters
value
double
AddRange(IEnumerable<double>)
Shift in a collection of new Y values
public void AddRange(IEnumerable<double> values)
Parameters
values
IEnumerable<double>
Clear(double)
Clear the buffer by setting all Y points to the given value
public void Clear(double value = 0)
Parameters
value
double
GetAxisLimits(bool)
public AxisLimits GetAxisLimits(bool tight = true)
Parameters
tight
bool