ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
ScottPlot.DataSources.SignalXYSourceDoubleArray Class Reference
Inheritance diagram for ScottPlot.DataSources.SignalXYSourceDoubleArray:
ScottPlot.ISignalXYSource ScottPlot.IDataSource ScottPlot.IGetNearest

Public Member Functions

 SignalXYSourceDoubleArray (double[] xs, double[] ys)
 
AxisLimits GetAxisLimits ()
 Return the axis limits covered by these data.
 
Pixel[] GetPixelsToDraw (RenderPack rp, IAxes axes, ConnectStyle connectStyle)
 Return pixels to render to display this signal. May return one extra point on each side of the plot outside the data area.
 
DataPoint GetNearest (Coordinates mouseLocation, RenderDetails renderInfo, float maxDistance=15)
 Return the point nearest a specific location given the X/Y pixel scaling information from a previous render. Will return DataPoint.None if the nearest point is greater than maxDistance pixels away.
 
DataPoint GetNearestX (Coordinates mouseLocation, RenderDetails renderInfo, float maxDistance=15)
 Return the point nearest a specific X location given the X/Y pixel scaling information from a previous render. Will return DataPoint.None if the nearest point is greater than maxDistance pixels away.
 

Properties

int Count [get]
 Number of values in the data source.
 
bool Rotated = false [get, set]
 If enabled, Xs will be vertical and Ys will be horizontal.
 
double XOffset = 0 [get, set]
 X position of the first data point.
 
double YOffset = 0 [get, set]
 Shift Y position of all values by this amount.
 
double YScale = 1 [get, set]
 Multiply Y values by this scale factor (before applying offset)
 
double XScale = 1 [get, set]
 Multiply X values by this scale factor (before applying offset)
 
int MinimumIndex = 0 [get, set]
 Do not display data below this index.
 
int MaximumIndex [get, set]
 Do not display data above this index.
 
bool UsePixelOverlap = false [get]
 
- Properties inherited from ScottPlot.ISignalXYSource
- Properties inherited from ScottPlot.IDataSource

Constructor & Destructor Documentation

◆ SignalXYSourceDoubleArray()

ScottPlot.DataSources.SignalXYSourceDoubleArray.SignalXYSourceDoubleArray ( double[]  xs,
double[]  ys 
)
inline

Member Function Documentation

◆ GetAxisLimits()

AxisLimits ScottPlot.DataSources.SignalXYSourceDoubleArray.GetAxisLimits ( )
inline

Return the axis limits covered by these data.

Implements ScottPlot.ISignalXYSource.

◆ GetNearest()

DataPoint ScottPlot.DataSources.SignalXYSourceDoubleArray.GetNearest ( Coordinates  location,
RenderDetails  renderInfo,
float  maxDistance = 15 
)

Return the point nearest a specific location given the X/Y pixel scaling information from a previous render. Will return DataPoint.None if the nearest point is greater than maxDistance pixels away.

Implements ScottPlot.ISignalXYSource.

◆ GetNearestX()

DataPoint ScottPlot.DataSources.SignalXYSourceDoubleArray.GetNearestX ( Coordinates  location,
RenderDetails  renderInfo,
float  maxDistance = 15 
)

Return the point nearest a specific X location given the X/Y pixel scaling information from a previous render. Will return DataPoint.None if the nearest point is greater than maxDistance pixels away.

Implements ScottPlot.ISignalXYSource.

◆ GetPixelsToDraw()

Pixel[] ScottPlot.DataSources.SignalXYSourceDoubleArray.GetPixelsToDraw ( RenderPack  rp,
IAxes  axes,
ConnectStyle  connectStyle 
)
inline

Return pixels to render to display this signal. May return one extra point on each side of the plot outside the data area.

Implements ScottPlot.ISignalXYSource.

Property Documentation

◆ Count

int ScottPlot.DataSources.SignalXYSourceDoubleArray.Count
get

Number of values in the data source.

Implements ScottPlot.ISignalXYSource.

◆ MaximumIndex

int ScottPlot.DataSources.SignalXYSourceDoubleArray.MaximumIndex
getset

Do not display data above this index.

Implements ScottPlot.ISignalXYSource.

◆ MinimumIndex

int ScottPlot.DataSources.SignalXYSourceDoubleArray.MinimumIndex = 0
getset

Do not display data below this index.

Implements ScottPlot.ISignalXYSource.

◆ Rotated

bool ScottPlot.DataSources.SignalXYSourceDoubleArray.Rotated = false
getset

If enabled, Xs will be vertical and Ys will be horizontal.

Implements ScottPlot.ISignalXYSource.

◆ UsePixelOverlap

bool ScottPlot.DataSources.SignalXYSourceDoubleArray.UsePixelOverlap = false
get

◆ XOffset

double ScottPlot.DataSources.SignalXYSourceDoubleArray.XOffset = 0
getset

X position of the first data point.

Implements ScottPlot.ISignalXYSource.

◆ XScale

double ScottPlot.DataSources.SignalXYSourceDoubleArray.XScale = 1
getset

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

Implements ScottPlot.ISignalXYSource.

◆ YOffset

double ScottPlot.DataSources.SignalXYSourceDoubleArray.YOffset = 0
getset

Shift Y position of all values by this amount.

Implements ScottPlot.ISignalXYSource.

◆ YScale

double ScottPlot.DataSources.SignalXYSourceDoubleArray.YScale = 1
getset

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

Implements ScottPlot.ISignalXYSource.


The documentation for this class was generated from the following file: