Table of Contents

Class YAxisBase

Namespace
ScottPlot.AxisPanels
Assembly
ScottPlot.dll
public abstract class YAxisBase : AxisBase, IYAxis, IAxis, IPanel
Inheritance
YAxisBase
Implements
Derived
Inherited Members
Extension Methods

Properties

Height

public double Height { get; }

Property Value

double

Methods

GetCoordinate(float, PixelRect)

Get the coordinate of a pixel position given the location and size of the data area

public double GetCoordinate(float pixel, PixelRect dataArea)

Parameters

pixel float
dataArea PixelRect

Returns

double

GetCoordinateDistance(float, PixelRect)

Given a distance in pixel space, converts to coordinate space

public double GetCoordinateDistance(float distance, PixelRect dataArea)

Parameters

distance float
dataArea PixelRect

The rectangle onto which the coordinates are mapped

Returns

double

The same distance in coordinate units

GetPanelRect(PixelRect, float, float)

Return the rectangle for this panel

public PixelRect GetPanelRect(PixelRect dataRect, float size, float offset)

Parameters

dataRect PixelRect
size float
offset float

Returns

PixelRect

GetPixel(double, PixelRect)

Get the pixel position of a coordinate given the location and size of the data area

public float GetPixel(double position, PixelRect dataArea)

Parameters

position double
dataArea PixelRect

Returns

float

GetPixelDistance(double, PixelRect)

Given a distance in coordinate space, converts to pixel space

public double GetPixelDistance(double distance, PixelRect dataArea)

Parameters

distance double
dataArea PixelRect

The rectangle onto which the coordinates are mapped

Returns

double

The same distance in pixel units

Measure()

Return the size (in pixels) of the panel in the dimension perpendicular to the edge it lays on

public virtual float Measure()

Returns

float

RegenerateTicks(PixelLength)

Use the TickLabelStyle to generate ticks with ideal spacing.

public void RegenerateTicks(PixelLength size)

Parameters

size PixelLength

Render(RenderPack, float, float)

Draw this panel on a canvas

public virtual void Render(RenderPack rp, float size, float offset)

Parameters

rp RenderPack
size float

size of this panel (pixel units)

offset float

distance from the edge of this panel to the edge of the data area