Table of Contents

Interface ISignalSource

Namespace
ScottPlot
Assembly
ScottPlot.dll

This interface is used by plottables to access data while rendering. This interface describes Y data sampled along an X axis at a fixed period.

public interface ISignalSource
Extension Methods

Properties

MaximumIndex

Do not display data above this index

int MaximumIndex { get; set; }

Property Value

int

MinimumIndex

Do not display data below this index

int MinimumIndex { get; set; }

Property Value

int

Period

X distance between Y points

double Period { get; set; }

Property Value

double

XOffset

X position of the first data point

double XOffset { get; set; }

Property Value

double

YOffset

Shift Y position of all values by this amount

double YOffset { get; set; }

Property Value

double

YScale

Multiply Y values by this scale factor (before applying offset)

double YScale { get; set; }

Property Value

double

Methods

GetIndex(double, bool)

Returns the predicted index for the data point nearest a given X position. If clamped, the returned index will be clamped between 0 and Length - 1.

int GetIndex(double x, bool clamp)

Parameters

x double
clamp bool

Returns

int

GetLimits()

AxisLimits GetLimits()

Returns

AxisLimits

GetLimitsX()

CoordinateRange GetLimitsX()

Returns

CoordinateRange

GetLimitsY()

CoordinateRange GetLimitsY()

Returns

CoordinateRange

GetPixelColumn(IAxes, int)

Returns range information about the data at a specific pixel location

PixelColumn GetPixelColumn(IAxes axes, int xPixelIndex)

Parameters

axes IAxes
xPixelIndex int

Returns

PixelColumn

GetX(int)

Returns the X position for a given index.

double GetX(int index)

Parameters

index int

Returns

double

GetY(int)

Returns the Y position for a given index.

double GetY(int index)

Parameters

index int

Returns

double

GetYs()

Return an object for working with all Y values.

IReadOnlyList<double> GetYs()

Returns

IReadOnlyList<double>

GetYs(int, int)

Y values between a range of indexes (inclusive).

IEnumerable<double> GetYs(int index1, int index2)

Parameters

index1 int
index2 int

Returns

IEnumerable<double>