Skip to main content

OpenTD .NET4 reference 2025 R2

OpenTD.Results.Plot.Axis Class Reference

Last update: 16.07.2025

Represents an axis on a plot. Will attempt to name itself based on the series associated with it. More...

Inheritance diagram for OpenTD.Results.Plot.Axis:
OpenTD.Results.Dataset.IAutoNameOpenTD.Results.Dataset.IAutoComment

Public Types

enum  Positions { PRIMARY , SECONDARY }
 Primary or secondary axis? More...
 

Public Member Functions

 Axis ()
 
 Axis (UnitsData.UnitsType dimension)
 
 Axis (UnitsData.UnitsType dimension, UnitsData units)
 
void SetAxisStyle (AxisStyle ax)
 
AxisStyle GetAxisStyle ()
 
override string ToString ()
 

Protected Member Functions

virtual string GetSelfSuggestedName ()
 
virtual string GetSelfSuggestedComment ()
 

Properties

AxisStyle AxisStyle [get, set]
 
bool IsInteger [get, set]
 
UnitsData.UnitsType Dimension [get, set]
 Physical dimension of the axis.
 
UnitsData Units [get, set]
 Units system to display on the axis and to use to plot series associated with it.
 
double MinimumValue [get, set]
 
double MaximumValue [get, set]
 
double Interval [get, set]
 
bool AutoScaleMinimumValue [get, set]
 
bool AutoScaleMaximumValue [get, set]
 
bool AutoScaleInterval [get, set]
 
int AutoScaleNumIntervals [get, set]
 
Positions Position [get, set]
 
Grid MajorGrid [get, set]
 
Grid MinorGrid [get, set]
 
string Title [get, set]
 
bool IsReversed [get, set]
 
AutoNamer AutoNamer [get, set]
 
string Name [get, set]
 
string InternalSuggestedName [get, set]
 
AutoCommenter AutoCommenter [get, set]
 
string Comment [get, set]
 
string InternalSuggestedComment [get, set]
 

Detailed Description

Represents an axis on a plot. Will attempt to name itself based on the series associated with it.

See also
OpenTD.Results.Plot.Plot2d, OpenTD.Results.Dataset.IAutoName

Member Enumeration Documentation

◆ Positions

Primary or secondary axis?

Enumerator
PRIMARY 
SECONDARY 

Constructor & Destructor Documentation

◆ Axis() [1/3]

OpenTD.Results.Plot.Axis.Axis ( )
inline

◆ Axis() [2/3]

OpenTD.Results.Plot.Axis.Axis ( UnitsData.UnitsType dimension)
inline

◆ Axis() [3/3]

OpenTD.Results.Plot.Axis.Axis ( UnitsData.UnitsType dimension,
UnitsData units )
inline

Member Function Documentation

◆ GetAxisStyle()

AxisStyle OpenTD.Results.Plot.Axis.GetAxisStyle ( )
inline

◆ GetSelfSuggestedComment()

virtual string OpenTD.Results.Plot.Axis.GetSelfSuggestedComment ( )
inlineprotectedvirtual

◆ GetSelfSuggestedName()

virtual string OpenTD.Results.Plot.Axis.GetSelfSuggestedName ( )
inlineprotectedvirtual

◆ SetAxisStyle()

void OpenTD.Results.Plot.Axis.SetAxisStyle ( AxisStyle ax)
inline

◆ ToString()

override string OpenTD.Results.Plot.Axis.ToString ( )
inline

Property Documentation

◆ AutoCommenter

AutoCommenter OpenTD.Results.Plot.Axis.AutoCommenter
getsetprotected

◆ AutoNamer

AutoNamer OpenTD.Results.Plot.Axis.AutoNamer
getsetprotected

◆ AutoScaleInterval

bool OpenTD.Results.Plot.Axis.AutoScaleInterval
getset

◆ AutoScaleMaximumValue

bool OpenTD.Results.Plot.Axis.AutoScaleMaximumValue
getset

◆ AutoScaleMinimumValue

bool OpenTD.Results.Plot.Axis.AutoScaleMinimumValue
getset

◆ AutoScaleNumIntervals

int OpenTD.Results.Plot.Axis.AutoScaleNumIntervals
getset

◆ AxisStyle

AxisStyle OpenTD.Results.Plot.Axis.AxisStyle
getset

◆ Comment

string OpenTD.Results.Plot.Axis.Comment
getset

◆ Dimension

UnitsData.UnitsType OpenTD.Results.Plot.Axis.Dimension
getset

Physical dimension of the axis.

◆ InternalSuggestedComment

string OpenTD.Results.Plot.Axis.InternalSuggestedComment
getset

◆ InternalSuggestedName

string OpenTD.Results.Plot.Axis.InternalSuggestedName
getset

◆ Interval

double OpenTD.Results.Plot.Axis.Interval
getset

◆ IsInteger

bool OpenTD.Results.Plot.Axis.IsInteger
getset

◆ IsReversed

bool OpenTD.Results.Plot.Axis.IsReversed
getset

◆ MajorGrid

Grid OpenTD.Results.Plot.Axis.MajorGrid
getset

◆ MaximumValue

double OpenTD.Results.Plot.Axis.MaximumValue
getset

◆ MinimumValue

double OpenTD.Results.Plot.Axis.MinimumValue
getset

◆ MinorGrid

Grid OpenTD.Results.Plot.Axis.MinorGrid
getset

◆ Name

string OpenTD.Results.Plot.Axis.Name
getset

◆ Position

Positions OpenTD.Results.Plot.Axis.Position
getset

◆ Title

string OpenTD.Results.Plot.Axis.Title
getset

◆ Units

UnitsData OpenTD.Results.Plot.Axis.Units
getset

Units system to display on the axis and to use to plot series associated with it.


The documentation for this class was generated from the following file:
  • C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV_ALPHA/buildXX/OpenTD.Results/Plot/Axis.cs

Connect with Ansys