> ## 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.

# Interface IOperationsHeatMapSTFTDataViewModel

Namespace: [VM.Operations.Post.Interfaces](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces)\
Assembly: VM.Operations.Post.dll

The IOperationsHeatMapSTFTDataViewModel interface defines the structure and functionalities for handling heat map data specifically for Short-Time Fourier Transform (STFT).

```csharp theme={null}
public interface IOperationsHeatMapSTFTDataViewModel
```

## Properties

### End

Gets or sets the end time for using FFT (Fast Fourier Transform) on the target data series.

```csharp theme={null}
double End { get; set; }
```

#### Property Value

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

#### Examples

The following example demonstrates how to use the `End` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
page = applicationHandler.GetPage("page1");
chart = page.CreateChart("CurveChart");
# Set array about combination of characteristic and component
curvePaths = List[str] ();
curvePaths.Add(r'Displacement/Magnitude');
curvePaths.Add(r'Acceleration/Magnitude');
# Set a Curve Parameter
parameters = PlotParameters();
parameters.Paths = curvePaths;
parameters.Target = "BD_001";
curves = chart.AddCurves(filepath, parameters);
data = HitMapSTFTDataViewModel();
data.SamplingFrequency = 100;
data.TimeSlice = 0.05;
data.Overlap = 50;
data.SelectedPoints = 16384;
data.Start = 0;
data.End = 1.000000000001;
data.ReferenceValue = 1E-05;
data.ScaleFactor = 1.0;
data.SelectedScaleType = STFTScaleType.Original;
stftviews = chart.CreateSTFT(data, series);
stftviews[0].STFT2DViewModel.End = 0.9;
```

#### Remarks

This property allows you to set the end time for applying FFT on the target data series.
In the UI, this property is represented under the "Source" category with the property name "End".

### LegendColorType

Gets or sets the color scheme of the legend.

```csharp theme={null}
ColorSchemeType LegendColorType { get; set; }
```

#### Property Value

ColorSchemeType

#### Examples

The following example demonstrates how to use the `LegendColorType` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
page = applicationHandler.GetPage("page1");
chart = page.CreateChart("CurveChart");
# Set array about combination of characteristic and component
curvePaths = List[str] ();
curvePaths.Add(r'Displacement/Magnitude');
curvePaths.Add(r'Acceleration/Magnitude');
# Set a Curve Parameter
parameters = PlotParameters();
parameters.Paths = curvePaths;
parameters.Target = "BD_001";
curves = chart.AddCurves(filepath, parameters);
data = HitMapSTFTDataViewModel();
data.SamplingFrequency = 100;
data.TimeSlice = 0.05;
data.Overlap = 50;
data.SelectedPoints = 16384;
data.Start = 0;
data.End = 1.000000000001;
data.ReferenceValue = 1E-05;
data.ScaleFactor = 1.0;
data.SelectedScaleType = STFTScaleType.Original;
stftviews = chart.CreateSTFT(data, series);
stftviews[0].STFT2DViewModel.LegendColorType = ColorSchemeType.NORMAL;
```

#### Remarks

This property allows you to set the color scheme of the legend.
The available color schemes are:
<ul><li>NORMAL</li><li>NORMAL\_INVERTED</li><li>BLACK\_TO\_WHITE</li><li>WHITE\_TO\_BLACK</li><li>GREEN\_TO\_BROWN</li><li>WHITE\_TO\_BROWN</li><li>METAL\_CASTING</li><li>THERMAL\_1</li><li>THERMAL\_2</li><li>THERMAL\_3</li></ul>
In the UI, this property is represented under the "Legend" category with the property name "Color".

### Overlap

Gets or sets the percentage value for setting overlapped intervals.

```csharp theme={null}
double Overlap { get; set; }
```

#### Property Value

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

#### Examples

The following example demonstrates how to use the `Overlap` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
page = applicationHandler.GetPage("page1");
chart = page.CreateChart("CurveChart");
# Set array about combination of characteristic and component
curvePaths = List[str] ();
curvePaths.Add(r'Displacement/Magnitude');
curvePaths.Add(r'Acceleration/Magnitude');
# Set a Curve Parameter
parameters = PlotParameters();
parameters.Paths = curvePaths;
parameters.Target = "BD_001";
curves = chart.AddCurves(filepath, parameters);
data = HitMapSTFTDataViewModel();
data.SamplingFrequency = 100;
data.TimeSlice = 0.05;
data.Overlap = 50;
data.SelectedPoints = 16384;
data.Start = 0;
data.End = 1.000000000001;
data.ReferenceValue = 1E-05;
data.ScaleFactor = 1.0;
data.SelectedScaleType = STFTScaleType.Original;
stftviews = chart.CreateSTFT(data, series);
stftviews[0].STFT2DViewModel.Overlap = 100;
```

#### Remarks

This property allows you to set the percentage value for overlapped intervals.
In the UI, this property is represented under the "Source" category with the property name "Overlap".

### ReferenceValue

Gets or sets the reference value for decibel scaling.

```csharp theme={null}
double ReferenceValue { get; set; }
```

#### Property Value

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

#### Examples

The following example demonstrates how to use the `ReferenceValue` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
page = applicationHandler.GetPage("page1");
chart = page.CreateChart("CurveChart");
# Set array about combination of characteristic and component
curvePaths = List[str] ();
curvePaths.Add(r'Displacement/Magnitude');
curvePaths.Add(r'Acceleration/Magnitude');
# Set a Curve Parameter
parameters = PlotParameters();
parameters.Paths = curvePaths;
parameters.Target = "BD_001";
curves = chart.AddCurves(filepath, parameters);
data = HitMapSTFTDataViewModel();
data.SamplingFrequency = 100;
data.TimeSlice = 0.05;
data.Overlap = 50;
data.SelectedPoints = 16384;
data.Start = 0;
data.End = 1.000000000001;
data.ReferenceValue = 1E-05;
data.ScaleFactor = 1.0;
data.SelectedScaleType = STFTScaleType.Original;
stftviews = chart.CreateSTFT(data, series);
stftviews[0].STFT2DViewModel.ReferenceValue = 1E-05;
```

#### Remarks

This property allows you to set the reference value for decibel scaling. It is applicable only when the SelectedScaleType property is set to Decibel.
In the UI, this property is represented under the "Source" category with the property name "RefVal".

### SamplingFrequency

Gets or sets the sampling frequency, which is the number of intervals for dividing the Y direction grids on a color map.

```csharp theme={null}
int SamplingFrequency { get; set; }
```

#### Property Value

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

#### Examples

The following example demonstrates how to use the `SamplingFrequency` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
page = applicationHandler.GetPage("page1");
chart = page.CreateChart("CurveChart");
# Set array about combination of characteristic and component
curvePaths = List[str] ();
curvePaths.Add(r'Displacement/Magnitude');
curvePaths.Add(r'Acceleration/Magnitude');
# Set a Curve Parameter
parameters = PlotParameters();
parameters.Paths = curvePaths;
parameters.Target = "BD_001";
curves = chart.AddCurves(filepath, parameters);
data = HitMapSTFTDataViewModel();
data.SamplingFrequency = 100;
data.TimeSlice = 0.05;
data.Overlap = 50;
data.SelectedPoints = 16384;
data.Start = 0;
data.End = 1.000000000001;
data.ReferenceValue = 1E-05;
data.ScaleFactor = 1.0;
data.SelectedScaleType = STFTScaleType.Original;
stftviews = chart.CreateSTFT(data, series);
stftviews[0].STFT2DViewModel.SamplingFrequency = 100;
```

#### Remarks

This property allows you to set the number of intervals for dividing the Y direction grids on a color map.
In the UI, this property is represented under the "Source" category with the property name "Sampling Frequency".

### ScaleFactor

Gets or sets the scale factor for transforming from the time domain to another domain.

```csharp theme={null}
double ScaleFactor { get; set; }
```

#### Property Value

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

#### Examples

The following example demonstrates how to use the `ScaleFactor` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
page = applicationHandler.GetPage("page1");
chart = page.CreateChart("CurveChart");
# Set array about combination of characteristic and component
curvePaths = List[str] ();
curvePaths.Add(r'Displacement/Magnitude');
curvePaths.Add(r'Acceleration/Magnitude');
# Set a Curve Parameter
parameters = PlotParameters();
parameters.Paths = curvePaths;
parameters.Target = "BD_001";
curves = chart.AddCurves(filepath, parameters);
data = HitMapSTFTDataViewModel();
data.SamplingFrequency = 100;
data.TimeSlice = 0.05;
data.Overlap = 50;
data.SelectedPoints = 16384;
data.Start = 0;
data.End = 1.000000000001;
data.ReferenceValue = 1E-05;
data.ScaleFactor = 1.0;
data.SelectedScaleType = STFTScaleType.Original;
stftviews = chart.CreateSTFT(data, series);
stftviews[0].STFT2DViewModel.ScaleFactor = 2.0;
```

#### Remarks

This property allows you to set the scale factor for transforming data from the time domain to another domain.
In the UI, this property is represented under the "Source" category with the property name "Scale Factor".

### SelectedPoints

Gets or sets the number of data points for FFT (Fast Fourier Transform).

```csharp theme={null}
int SelectedPoints { get; set; }
```

#### Property Value

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

#### Examples

The following example demonstrates how to use the `SelectedPoints` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
page = applicationHandler.GetPage("page1");
chart = page.CreateChart("CurveChart");
# Set array about combination of characteristic and component
curvePaths = List[str] ();
curvePaths.Add(r'Displacement/Magnitude');
curvePaths.Add(r'Acceleration/Magnitude');
# Set a Curve Parameter
parameters = PlotParameters();
parameters.Paths = curvePaths;
parameters.Target = "BD_001";
curves = chart.AddCurves(filepath, parameters);
data = HitMapSTFTDataViewModel();
data.SamplingFrequency = 100;
data.TimeSlice = 0.05;
data.Overlap = 50;
data.SelectedPoints = 16384;
data.Start = 0;
data.End = 1.000000000001;
data.ReferenceValue = 1E-05;
data.ScaleFactor = 1.0;
data.SelectedScaleType = STFTScaleType.Original;
stftviews = chart.CreateSTFT(data, series);
stftviews[0].STFT2DViewModel.SelectedPoints = 16384;
```

#### Remarks

This property allows you to set the number of data points to be used for the FFT.
In the UI, this property is represented under the "Source" category with the property name "nFFT".

### SelectedScaleType

Gets or sets the scale type for the Short-Time Fourier Transform (STFT).

```csharp theme={null}
STFTScaleType SelectedScaleType { get; set; }
```

#### Property Value

STFTScaleType

#### Examples

The following example demonstrates how to use the `SelectedScaleType` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
page = applicationHandler.GetPage("page1");
chart = page.CreateChart("CurveChart");
# Set array about combination of characteristic and component
curvePaths = List[str] ();
curvePaths.Add(r'Displacement/Magnitude');
curvePaths.Add(r'Acceleration/Magnitude');
# Set a Curve Parameter
parameters = PlotParameters();
parameters.Paths = curvePaths;
parameters.Target = "BD_001";
curves = chart.AddCurves(filepath, parameters);
data = HitMapSTFTDataViewModel();
data.SamplingFrequency = 100;
data.TimeSlice = 0.05;
data.Overlap = 50;
data.SelectedPoints = 16384;
data.Start = 0;
data.End = 1.000000000001;
data.ReferenceValue = 1E-05;
data.ScaleFactor = 1.0;
data.SelectedScaleType = STFTScaleType.Original;
stftviews = chart.CreateSTFT(data, series);
stftviews[0].STFT2DViewModel.SelectedScaleType = STFTScaleType.Decibel;
```

#### Remarks

This property allows you to set the scale type for the STFT.
The supported types are:
<ul><li>Original</li><li>Decibel</li></ul>
In the UI, this property is represented under the "Source" category with the property name "Scale".

### Start

Gets or sets the start time for using FFT (Fast Fourier Transform) on the target data series.

```csharp theme={null}
double Start { get; set; }
```

#### Property Value

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

#### Examples

The following example demonstrates how to use the `Start` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
page = applicationHandler.GetPage("page1");
chart = page.CreateChart("CurveChart");
# Set array about combination of characteristic and component
curvePaths = List[str] ();
curvePaths.Add(r'Displacement/Magnitude');
curvePaths.Add(r'Acceleration/Magnitude');
# Set a Curve Parameter
parameters = PlotParameters();
parameters.Paths = curvePaths;
parameters.Target = "BD_001";
curves = chart.AddCurves(filepath, parameters);
data = HitMapSTFTDataViewModel();
data.SamplingFrequency = 100;
data.TimeSlice = 0.05;
data.Overlap = 50;
data.SelectedPoints = 16384;
data.Start = 0;
data.End = 1.000000000001;
data.ReferenceValue = 1E-05;
data.ScaleFactor = 1.0;
data.SelectedScaleType = STFTScaleType.Original;
stftviews = chart.CreateSTFT(data, series);
stftviews[0].STFT2DViewModel.Start = 0.1;
```

#### Remarks

This property allows you to set the start time for applying FFT on the target data series.
In the UI, this property is represented under the "Source" category with the property name "Start".

### TimeSlice

Gets or sets the number of intervals for dividing the X direction grids on a color map.

```csharp theme={null}
double TimeSlice { get; set; }
```

#### Property Value

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

#### Examples

The following example demonstrates how to use the `TimeSlice` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
page = applicationHandler.GetPage("page1");
chart = page.CreateChart("CurveChart");
# Set array about combination of characteristic and component
curvePaths = List[str] ();
curvePaths.Add(r'Displacement/Magnitude');
curvePaths.Add(r'Acceleration/Magnitude');
# Set a Curve Parameter
parameters = PlotParameters();
parameters.Paths = curvePaths;
parameters.Target = "BD_001";
curves = chart.AddCurves(filepath, parameters);
data = HitMapSTFTDataViewModel();
data.SamplingFrequency = 100;
data.TimeSlice = 0.05;
data.Overlap = 50;
data.SelectedPoints = 16384;
data.Start = 0;
data.End = 1.000000000001;
data.ReferenceValue = 1E-05;
data.ScaleFactor = 1.0;
data.SelectedScaleType = STFTScaleType.Original;
stftviews = chart.CreateSTFT(data, series);
stftviews[0].STFT2DViewModel.TimeSlice = 0.01;
```

#### Remarks

This property allows you to set the number of intervals for dividing the X direction grids on a color map.
In the UI, this property is represented under the "Source" category with the property name "Time Slice".

## Methods

### ExportOrderTrackingCurve(string)

Exports a curve to order tracking by creating a new chart and adding the exported curve to it.

```csharp theme={null}
void ExportOrderTrackingCurve(string name)
```

#### Parameters

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

The name of the curve to be exported.

#### Examples

The following example demonstrates how to use the `ExportOrderTrackingCurve` method:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
page = applicationHandler.GetPage("page1");
chart = page.CreateChart("CurveChart");
# Set array about combination of characteristic and component
curvePaths = List[str] ();
curvePaths.Add(r'Displacement/Magnitude');
curvePaths.Add(r'Acceleration/Magnitude');
# Set a Curve Parameter
parameters = PlotParameters();
parameters.Paths = curvePaths;
parameters.Target = "BD_001";
curves = chart.AddCurves(filepath, parameters);
data = HitMapSTFTDataViewModel();
data.SamplingFrequency = 100;
data.TimeSlice = 0.05;
data.Overlap = 50;
data.SelectedPoints = 16384;
data.Start = 0;
data.End = 1.000000000001;
data.ReferenceValue = 1E-05;
data.ScaleFactor = 1.0;
data.SelectedScaleType = STFTScaleType.Original;
stftviews = chart.CreateSTFT(data, series);
stftviews[0].STFT2DViewModel.ExportOrderTrackingCurve("curve");
```

#### Remarks

This method exports a specified curve to order tracking by creating a new chart and adding the exported curve to it.
