> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class Series2d

Namespace: [OpenTD.Results.Plot](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Plot)\
Assembly: OpenTD.Results.dll

Represents a 2d series on a plot. Will attempt to name itself based on the data
associated with it.

```csharp theme={null}
public class Series2d
```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Series2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Plot.Series2d.md)

## Inherited Members

[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[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.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[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)

## Constructors

### Series2d(DataArray)

Initializes a new instance of the [Series2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Plot.Series2d.md) class, looking
in ydata's SourceDataset for time or record number to use as x data.

```csharp theme={null}
public Series2d(DataArray ydata)
```

#### Parameters

`ydata` [DataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md)

The y data.

### Series2d(DataArray, string)

Initializes a new instance of the [Series2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Plot.Series2d.md) class, looking
in ydata's SourceDataset for time or record number to use as x data.

```csharp theme={null}
public Series2d(DataArray ydata, string name)
```

#### Parameters

`ydata` [DataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md)

The y data.

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

A custom series name.

#### Exceptions

OpenTDException

ydata dataset must contain a valid SourceDataset to look up x values

### Series2d(DataArray, DataArray)

Initializes a new instance of the [Series2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Plot.Series2d.md) class, explicitly
specifying x and y data.

```csharp theme={null}
public Series2d(DataArray xdata, DataArray ydata)
```

#### Parameters

`xdata` [DataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md)

The x data.

`ydata` [DataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md)

The y data.

### Series2d(DataArray, DataArray, string)

Initializes a new instance of the [Series2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Plot.Series2d.md) class, explicitly
specifying x and y data.

```csharp theme={null}
public Series2d(DataArray xdata, DataArray ydata, string name)
```

#### Parameters

`xdata` [DataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md)

The x data.

`ydata` [DataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md)

The y data.

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

A custom series name.

## Fields

### Series2dStyle

```csharp theme={null}
public Series2dStyle Series2dStyle
```

#### Field Value

[Series2dStyle](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Plot.Series2dStyle.md)

## Properties

### Comment

```csharp theme={null}
public string Comment { get; set; }
```

#### Property Value

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

### Enabled

```csharp theme={null}
public bool Enabled { get; set; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### InternalSuggestedComment

```csharp theme={null}
public string InternalSuggestedComment { get; set; }
```

#### Property Value

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

### InternalSuggestedName

```csharp theme={null}
public string InternalSuggestedName { get; set; }
```

#### Property Value

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

### Name

```csharp theme={null}
public string Name { get; set; }
```

#### Property Value

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

### XAxis

```csharp theme={null}
public Axis XAxis { get; set; }
```

#### Property Value

[Axis](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Plot.Axis.md)

### XData

```csharp theme={null}
public DataArray XData { get; set; }
```

#### Property Value

[DataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md)

### YAxis

```csharp theme={null}
public Axis YAxis { get; set; }
```

#### Property Value

[Axis](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Plot.Axis.md)

### YData

```csharp theme={null}
public DataArray YData { get; set; }
```

#### Property Value

[DataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md)

## Methods

### CheckData()

```csharp theme={null}
public void CheckData()
```

### GetSeries2dStyle()

```csharp theme={null}
public Series2dStyle GetSeries2dStyle()
```

#### Returns

[Series2dStyle](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Plot.Series2dStyle.md)

### SetSeries2dStyle(Series2dStyle)

```csharp theme={null}
public void SetSeries2dStyle(Series2dStyle sstyle)
```

#### Parameters

`sstyle` [Series2dStyle](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Plot.Series2dStyle.md)

### ToString()

Returns a string that represents the current object.

```csharp theme={null}
public override string ToString()
```

#### Returns

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

A string that represents the current object.

## See Also

[Plot2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Plot.Plot2d.md),
IAutoName
