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
MinimumIndex
Do not display data below this index
int MinimumIndex { get; set; }
Property Value
Period
X distance between Y points
double Period { get; set; }
Property Value
XOffset
X position of the first data point
double XOffset { get; set; }
Property Value
YOffset
Shift Y position of all values by this amount
double YOffset { get; set; }
Property Value
YScale
Multiply Y values by this scale factor (before applying offset)
double YScale { get; set; }
Property Value
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
Returns
GetLimits()
AxisLimits GetLimits()
Returns
GetLimitsX()
CoordinateRange GetLimitsX()
Returns
GetLimitsY()
CoordinateRange GetLimitsY()
Returns
GetPixelColumn(IAxes, int)
Returns range information about the data at a specific pixel location
PixelColumn GetPixelColumn(IAxes axes, int xPixelIndex)
Parameters
Returns
GetX(int)
Returns the X position for a given index.
double GetX(int index)
Parameters
index
int
Returns
GetY(int)
Returns the Y position for a given index.
double GetY(int index)
Parameters
index
int
Returns
GetYs()
Return an object for working with all Y values.
IReadOnlyList<double> GetYs()
Returns
GetYs(int, int)
Y values between a range of indexes (inclusive).
IEnumerable<double> GetYs(int index1, int index2)