Table of Contents

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

int

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

int

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

double

DataMin

Minimum value of all known data (not just the data in view)

public double DataMin { get; }

Property Value

double

Length

The number of visible data points to display

public int Length { get; }

Property Value

int

NewestIndex

Index in Data holding the newest data point

public int NewestIndex { get; }

Property Value

int

NewestPoint

Value of the most recently added data point

public double NewestPoint { get; }

Property Value

double

NextIndex

Index in Data where the next point will be added

public int NextIndex { get; }

Property Value

int

OffsetX

public double OffsetX { get; set; }

Property Value

double

OffsetY

public double OffsetY { get; set; }

Property Value

double

SamplePeriod

public double SamplePeriod { get; set; }

Property Value

double

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

Returns

AxisLimits