Class Axis
Last update: 09.03.2026Namespace: OpenTD.Results.Plot
Assembly: OpenTD.Results.dll
Represents an axis on a plot. Will attempt to name itself based on the series associated with it.
public class Axis
Inheritance
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Axis()
public Axis()
Axis(UnitsType)
public Axis(UnitsData.UnitsType dimension)
Parameters
dimension UnitsData.UnitsType
Axis(UnitsType, UnitsData)
public Axis(UnitsData.UnitsType dimension, UnitsData units)
Parameters
dimension UnitsData.UnitsType
units UnitsData
Properties
AutoCommenter
protected AutoCommenter AutoCommenter { get; set; }
Property Value
AutoCommenter
AutoNamer
protected AutoNamer AutoNamer { get; set; }
Property Value
AutoNamer
AutoScaleInterval
public bool AutoScaleInterval { get; set; }
Property Value
AutoScaleMaximumValue
public bool AutoScaleMaximumValue { get; set; }
Property Value
AutoScaleMinimumValue
public bool AutoScaleMinimumValue { get; set; }
Property Value
AutoScaleNumIntervals
public int AutoScaleNumIntervals { get; set; }
Property Value
AxisStyle
public AxisStyle AxisStyle { get; set; }
Property Value
Comment
public string Comment { get; set; }
Property Value
Dimension
Physical dimension of the axis.
public UnitsData.UnitsType Dimension { get; set; }
Property Value
UnitsData.UnitsType
InternalSuggestedComment
public string InternalSuggestedComment { get; set; }
Property Value
InternalSuggestedName
public string InternalSuggestedName { get; set; }
Property Value
Interval
public double Interval { get; set; }
Property Value
IsInteger
public bool IsInteger { get; set; }
Property Value
IsReversed
public bool IsReversed { get; set; }
Property Value
MajorGrid
public Grid MajorGrid { get; set; }
Property Value
MaximumValue
public double MaximumValue { get; set; }
Property Value
MinimumValue
public double MinimumValue { get; set; }
Property Value
MinorGrid
public Grid MinorGrid { get; set; }
Property Value
Name
public string Name { get; set; }
Property Value
Position
public Axis.Positions Position { get; set; }
Property Value
Title
public string Title { get; set; }
Property Value
Units
Units system to display on the axis and to use to plot series associated with it.
public UnitsData Units { get; set; }
Property Value
UnitsData
Methods
GetAxisStyle()
public AxisStyle GetAxisStyle()
Returns
GetSelfSuggestedComment()
protected virtual string GetSelfSuggestedComment()
Returns
GetSelfSuggestedName()
protected virtual string GetSelfSuggestedName()
Returns
SetAxisStyle(AxisStyle)
public void SetAxisStyle(AxisStyle ax)
Parameters
ax AxisStyle
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
A string that represents the current object.
See Also
Plot2d, IAutoName