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
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
Returns
GetCoordinateDistance(float, PixelRect)
Given a distance in pixel space, converts to coordinate space
public double GetCoordinateDistance(float distance, PixelRect dataArea)
Parameters
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
Returns
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
Returns
GetPixelDistance(double, PixelRect)
Given a distance in coordinate space, converts to pixel space
public double GetPixelDistance(double distance, PixelRect dataArea)
Parameters
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
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
RenderPacksize
floatsize of this panel (pixel units)
offset
floatdistance from the edge of this panel to the edge of the data area