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
Edge
public abstract Edge Edge { get; }
Property Value
EmptyLabelPadding
public PixelPadding EmptyLabelPadding { get; set; }
Property Value
FrameLineStyle
public LineStyle FrameLineStyle { get; }
Property Value
IsVisible
public bool IsVisible { get; set; }
Property Value
Label
[Obsolete("use LabelText, LabelFontColor, LabelFontSize, LabelFontName, etc. or properties of LabelStyle", false)]
public LabelStyle Label { get; }
Property Value
LabelStyle
public override LabelStyle LabelStyle { get; set; }
Property Value
MajorTickStyle
public TickMarkStyle MajorTickStyle { get; set; }
Property Value
Max
public double Max { get; set; }
Property Value
MaximumSize
public float MaximumSize { get; set; }
Property Value
Min
public double Min { get; set; }
Property Value
MinimumSize
public float MinimumSize { get; set; }
Property Value
MinorTickStyle
public TickMarkStyle MinorTickStyle { get; set; }
Property Value
PaddingBetweenTickAndAxisLabels
public PixelPadding PaddingBetweenTickAndAxisLabels { get; set; }
Property Value
PaddingOutsideAxisLabels
public PixelPadding PaddingOutsideAxisLabels { get; set; }
Property Value
Range
public virtual CoordinateRangeMutable Range { get; }
Property Value
ShowDebugInformation
public bool ShowDebugInformation { get; set; }
Property Value
SizeWhenNoData
public float SizeWhenNoData { get; set; }
Property Value
TickGenerator
public virtual ITickGenerator TickGenerator { get; set; }
Property Value
TickLabelStyle
public LabelStyle TickLabelStyle { get; set; }
Property Value
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
RenderPackpanelRect
PixelRectedge
EdgelineStyle
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
RenderPacklabel
LabelStylepanelRect
PixelRectticks
IEnumerable<Tick>axis
IAxismajorStyle
TickMarkStyleminorStyle
TickMarkStyle
SetTicks(double[], string[])
Replace the TickGenerator with a NumericManual pre-loaded with the given ticks.
public void SetTicks(double[] xs, string[] labels)
Parameters
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.