Skip to main content

OpenTD reference 2026 R1

Class SimplePlot

Last update: 09.03.2026

Namespace: OpenTD.Results.Plot
Assembly: OpenTD.Results.dll

An implementation of Plot2d using the .NET charting tools. Use this class to create 2d plots of solution data. One limitation: currently SimplePlot only allows one axis in each position, i.e., a primary and secondary x axis, and a primary and secondary y axis. If you try to plot more axes, it will throw an exception.

public class SimplePlot : Plot2d

Inheritance

object ← Plot2d ← SimplePlot

Inherited Members

Plot2d.SetSeriesPaletteColor(int, Color), Plot2d.SetPlotStyle(Plot2dStyle), Plot2d.GetPlotStyle(), Plot2d.Plot2dStyle, Plot2d.Title, Plot2d.Series, Plot2d.XAxes, Plot2d.YAxes, Plot2d.Legend, Plot2d.AutoScaleAxesMarginPercent, Plot2d.AutoUseMarkersForNonContinuousSeries, Plot2d.TryToNameYAxesBasedOnSeriesSubtype, Plot2d.AutoSetMarkers(), Plot2d.AutoSetAxes(), Plot2d.AutoScaleAxes(), Plot2d.AutoNameXAxes(), Plot2d.AutoNameYAxesBasedOnSubtype(), Plot2d.AddSeries(Series2d), Plot2d.AddSeries(DataArray, DataArray), Plot2d.AddSeries(DataArray), Plot2d.AddSeries(DataArrayCollection, bool), Plot2d.AddSeries(DataSubtype, IEnumerable<double>, UnitsData, ItemIdentifier), Plot2d.AddSeries(IEnumerable<double>), Plot2d.GetSeriesOnAxis(Axis), Plot2d.GetAsImage(), Plot2d.SaveAsImage(string), Plot2d.GetAsTable(string, bool), Plot2d.SaveAsTable(string, string, bool), Plot2d.Show(), Plot2d.ToString(), Plot2d.GetReadyToOutput(), Plot2d.AutoSetLegend(), Plot2d.AutoNamer, Plot2d.Name, Plot2d.InternalSuggestedName, Plot2d.GetSelfSuggestedName(), Plot2d.AutoCommenter, Plot2d.Comment, Plot2d.InternalSuggestedComment, Plot2d.GetSelfSuggestedComment(), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

SimplePlot(string)

public SimplePlot(string title)

Parameters

title string

SimplePlot()

public SimplePlot()

Methods

CheckData()

protected void CheckData()

GetAsImage()

public override Bitmap GetAsImage()

Returns

Bitmap

Show()

public override void Show()

See Also

Plot2d

Connect with Ansys