Click or drag to resize

G2DPlotItemGetPlotPointAt Method

Gets the plot point at a fractional index plotIndex.

Namespace: Altaxo.Graph.Gdi.Plot
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public (PointD2D layerCoordinates, double rowIndex)? GetPlotPointAt(
	double plotIndex,
	IPlotArea layer
)

Parameters

plotIndex  Double
The index of the plot point. Must be >= 0, but not neccessarily an integer.
layer  IPlotArea
The plot layer.

Return Value

NullableValueTuplePointD2D, Double
The layer coordinates of the plot point and the original index in the data table corresponding to the plot point index. If the plot point index is fractional, then (x,y) of the floor of the index and (x,y) of the ceiling of the index is linearly interpolated, and then the layer coordinated of that interpolated point is calculated. Likewise, the original row index of the floor of the plot point index and the ceiling of the plot point index is calculated.
See Also