Table of Contents

Class ScatterSourceCoordinatesArray

Namespace
ScottPlot.DataSources
Assembly
ScottPlot.dll

This data source manages X/Y points as a collection of coordinates

public class ScatterSourceCoordinatesArray : IScatterSource, IDataSource, IGetNearest
Inheritance
ScatterSourceCoordinatesArray
Implements
Inherited Members
Extension Methods

Constructors

ScatterSourceCoordinatesArray(Coordinates[])

This data source manages X/Y points as a collection of coordinates

public ScatterSourceCoordinatesArray(Coordinates[] coordinates)

Parameters

coordinates Coordinates[]

Properties

MaxRenderIndex

public int MaxRenderIndex { get; set; }

Property Value

int

MinRenderIndex

public int MinRenderIndex { get; set; }

Property Value

int

Methods

GetLimits()

public AxisLimits GetLimits()

Returns

AxisLimits

GetLimitsX()

public CoordinateRange GetLimitsX()

Returns

CoordinateRange

GetLimitsY()

public CoordinateRange GetLimitsY()

Returns

CoordinateRange

GetNearest(Coordinates, RenderDetails, float)

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

public DataPoint GetNearest(Coordinates mouseLocation, RenderDetails renderInfo, float maxDistance = 15)

Parameters

mouseLocation Coordinates
renderInfo RenderDetails
maxDistance float

Returns

DataPoint

GetNearestX(Coordinates, RenderDetails, float)

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

public DataPoint GetNearestX(Coordinates mouseLocation, RenderDetails renderInfo, float maxDistance = 15)

Parameters

mouseLocation Coordinates
renderInfo RenderDetails
maxDistance float

Returns

DataPoint

GetScatterPoints()

Return a copy of the data in Coordinates format.

public IReadOnlyList<Coordinates> GetScatterPoints()

Returns

IReadOnlyList<Coordinates>