    

 ## On this page

  

 

 # Class SimplePlot

 Last update: 09.03.2026 

Namespace: [OpenTD.Results.Plot](OpenTD.Results.Plot.md)  
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.

```csharp
public class SimplePlot : Plot2d

```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [Plot2d](OpenTD.Results.Plot.Plot2d.md) ← [SimplePlot](OpenTD.Results.Plot.SimplePlot.md)

## Inherited Members

[Plot2d.SetSeriesPaletteColor(int, Color)](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_SetSeriesPaletteColor_System_Int32_System_Drawing_Color_), [Plot2d.SetPlotStyle(Plot2dStyle)](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_SetPlotStyle_OpenTD_Results_Plot_Plot2dStyle_), [Plot2d.GetPlotStyle()](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_GetPlotStyle), [Plot2d.Plot2dStyle](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_Plot2dStyle), [Plot2d.Title](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_Title), [Plot2d.Series](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_Series), [Plot2d.XAxes](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_XAxes), [Plot2d.YAxes](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_YAxes), [Plot2d.Legend](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_Legend), [Plot2d.AutoScaleAxesMarginPercent](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_AutoScaleAxesMarginPercent), [Plot2d.AutoUseMarkersForNonContinuousSeries](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_AutoUseMarkersForNonContinuousSeries), [Plot2d.TryToNameYAxesBasedOnSeriesSubtype](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_TryToNameYAxesBasedOnSeriesSubtype), [Plot2d.AutoSetMarkers()](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_AutoSetMarkers), [Plot2d.AutoSetAxes()](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_AutoSetAxes), [Plot2d.AutoScaleAxes()](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_AutoScaleAxes), [Plot2d.AutoNameXAxes()](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_AutoNameXAxes), [Plot2d.AutoNameYAxesBasedOnSubtype()](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_AutoNameYAxesBasedOnSubtype), [Plot2d.AddSeries(Series2d)](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_AddSeries_OpenTD_Results_Plot_Series2d_), [Plot2d.AddSeries(DataArray, DataArray)](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_AddSeries_OpenTD_Results_Dataset_DataArray_OpenTD_Results_Dataset_DataArray_), [Plot2d.AddSeries(DataArray)](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_AddSeries_OpenTD_Results_Dataset_DataArray_), [Plot2d.AddSeries(DataArrayCollection, bool)](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_AddSeries_OpenTD_Results_Dataset_DataArrayCollection_System_Boolean_), [Plot2d.AddSeries(DataSubtype, IEnumerable&lt;double&gt;, UnitsData, ItemIdentifier)](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_AddSeries_OpenTD_Results_Dataset_DataSubtype_System_Collections_Generic_IEnumerable_System_Double__OpenTD_UnitsData_OpenTD_Results_Dataset_ItemIdentifier_), [Plot2d.AddSeries(IEnumerable&lt;double&gt;)](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_AddSeries_System_Collections_Generic_IEnumerable_System_Double__), [Plot2d.GetSeriesOnAxis(Axis)](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_GetSeriesOnAxis_OpenTD_Results_Plot_Axis_), [Plot2d.GetAsImage()](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_GetAsImage), [Plot2d.SaveAsImage(string)](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_SaveAsImage_System_String_), [Plot2d.GetAsTable(string, bool)](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_GetAsTable_System_String_System_Boolean_), [Plot2d.SaveAsTable(string, string, bool)](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_SaveAsTable_System_String_System_String_System_Boolean_), [Plot2d.Show()](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_Show), [Plot2d.ToString()](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_ToString), [Plot2d.GetReadyToOutput()](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_GetReadyToOutput), [Plot2d.AutoSetLegend()](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_AutoSetLegend), [Plot2d.AutoNamer](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_AutoNamer), [Plot2d.Name](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_Name), [Plot2d.InternalSuggestedName](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_InternalSuggestedName), [Plot2d.GetSelfSuggestedName()](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_GetSelfSuggestedName), [Plot2d.AutoCommenter](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_AutoCommenter), [Plot2d.Comment](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_Comment), [Plot2d.InternalSuggestedComment](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_InternalSuggestedComment), [Plot2d.GetSelfSuggestedComment()](OpenTD.Results.Plot.Plot2d.md#OpenTD_Results_Plot_Plot2d_GetSelfSuggestedComment), [object.Equals(object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)), [object.Equals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)), [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [object.ReferenceEquals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Constructors

### SimplePlot(string)

```csharp
public SimplePlot(string title)

```

#### Parameters

`title` [string](https://learn.microsoft.com/dotnet/api/system.string)

### SimplePlot()

```csharp
public SimplePlot()

```

## Methods

### CheckData()

```csharp
protected void CheckData()

```

### GetAsImage()

```csharp
public override Bitmap GetAsImage()

```

#### Returns

[Bitmap](https://learn.microsoft.com/dotnet/api/system.drawing.bitmap)

### Show()

```csharp
public override void Show()

```

## See Also

[Plot2d](OpenTD.Results.Plot.Plot2d.md)