Skip to main content

OpenTD reference 2026 R1

Class Axis

Last update: 09.03.2026

Namespace: 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

object ← Axis

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

bool

AutoScaleMaximumValue

public bool AutoScaleMaximumValue { get; set; }

Property Value

bool

AutoScaleMinimumValue

public bool AutoScaleMinimumValue { get; set; }

Property Value

bool

AutoScaleNumIntervals

public int AutoScaleNumIntervals { get; set; }

Property Value

int

AxisStyle

public AxisStyle AxisStyle { get; set; }

Property Value

AxisStyle

Comment

public string Comment { get; set; }

Property Value

string

Dimension

Physical dimension of the axis.

public UnitsData.UnitsType Dimension { get; set; }

Property Value

UnitsData.UnitsType

InternalSuggestedComment

public string InternalSuggestedComment { get; set; }

Property Value

string

InternalSuggestedName

public string InternalSuggestedName { get; set; }

Property Value

string

Interval

public double Interval { get; set; }

Property Value

double

IsInteger

public bool IsInteger { get; set; }

Property Value

bool

IsReversed

public bool IsReversed { get; set; }

Property Value

bool

MajorGrid

public Grid MajorGrid { get; set; }

Property Value

Grid

MaximumValue

public double MaximumValue { get; set; }

Property Value

double

MinimumValue

public double MinimumValue { get; set; }

Property Value

double

MinorGrid

public Grid MinorGrid { get; set; }

Property Value

Grid

Name

public string Name { get; set; }

Property Value

string

Position

public Axis.Positions Position { get; set; }

Property Value

Axis.Positions

Title

public string Title { get; set; }

Property Value

string

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

AxisStyle

GetSelfSuggestedComment()

protected virtual string GetSelfSuggestedComment()

Returns

string

GetSelfSuggestedName()

protected virtual string GetSelfSuggestedName()

Returns

string

SetAxisStyle(AxisStyle)

public void SetAxisStyle(AxisStyle ax)

Parameters

ax AxisStyle

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

See Also

Plot2d, IAutoName

Connect with Ansys