Table of Contents

Class AxisBase

Namespace
ScottPlot.AxisPanels
Assembly
ScottPlot.dll
public abstract class AxisBase : LabelStyleProperties
Inheritance
AxisBase
Derived
Inherited Members
Extension Methods

Properties

ClipLabel

Controls whether labels should be clipped to the boundaries of the data area

public bool ClipLabel { get; set; }

Property Value

bool

Edge

public abstract Edge Edge { get; }

Property Value

Edge

EmptyLabelPadding

public PixelPadding EmptyLabelPadding { get; set; }

Property Value

PixelPadding

FrameLineStyle

public LineStyle FrameLineStyle { get; }

Property Value

LineStyle

IsVisible

public bool IsVisible { get; set; }

Property Value

bool

Label

[Obsolete("use LabelText, LabelFontColor, LabelFontSize, LabelFontName, etc. or properties of LabelStyle", false)]
public LabelStyle Label { get; }

Property Value

LabelStyle

LabelStyle

public override LabelStyle LabelStyle { get; set; }

Property Value

LabelStyle

MajorTickStyle

public TickMarkStyle MajorTickStyle { get; set; }

Property Value

TickMarkStyle

Max

public double Max { get; set; }

Property Value

double

MaximumSize

public float MaximumSize { get; set; }

Property Value

float

Min

public double Min { get; set; }

Property Value

double

MinimumSize

public float MinimumSize { get; set; }

Property Value

float

MinorTickStyle

public TickMarkStyle MinorTickStyle { get; set; }

Property Value

TickMarkStyle

PaddingBetweenTickAndAxisLabels

public PixelPadding PaddingBetweenTickAndAxisLabels { get; set; }

Property Value

PixelPadding

PaddingOutsideAxisLabels

public PixelPadding PaddingOutsideAxisLabels { get; set; }

Property Value

PixelPadding

Range

public virtual CoordinateRangeMutable Range { get; }

Property Value

CoordinateRangeMutable

ShowDebugInformation

public bool ShowDebugInformation { get; set; }

Property Value

bool

SizeWhenNoData

public float SizeWhenNoData { get; set; }

Property Value

float

TickGenerator

public virtual ITickGenerator TickGenerator { get; set; }

Property Value

ITickGenerator

TickLabelStyle

public LabelStyle TickLabelStyle { get; set; }

Property Value

LabelStyle

Methods

Color(Color)

Apply a single color to all axis components: label, tick labels, tick marks, and frame

public void Color(Color color)

Parameters

color Color

DrawFrame(RenderPack, PixelRect, Edge, LineStyle)

Draw a line along the edge of an axis on the side of the data area

public static void DrawFrame(RenderPack rp, PixelRect panelRect, Edge edge, LineStyle lineStyle)

Parameters

rp RenderPack
panelRect PixelRect
edge Edge
lineStyle LineStyle

DrawTicks(RenderPack, LabelStyle, PixelRect, IEnumerable<Tick>, IAxis, TickMarkStyle, TickMarkStyle)

public static void DrawTicks(RenderPack rp, LabelStyle label, PixelRect panelRect, IEnumerable<Tick> ticks, IAxis axis, TickMarkStyle majorStyle, TickMarkStyle minorStyle)

Parameters

rp RenderPack
label LabelStyle
panelRect PixelRect
ticks IEnumerable<Tick>
axis IAxis
majorStyle TickMarkStyle
minorStyle TickMarkStyle

SetTicks(double[], string[])

Replace the TickGenerator with a NumericManual pre-loaded with the given ticks.

public void SetTicks(double[] xs, string[] labels)

Parameters

xs double[]
labels string[]

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.