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

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

Base interface for managing operations related to the STFT (Short-Time Fourier Transform) view.

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

## Properties

### IsAutoRange

Gets or sets a value indicating whether the Min and Max values of the legend are set automatically.

```csharp theme={null}
bool IsAutoRange { get; set; }
```

#### Property Value

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

#### Examples

The following example demonstrates how to use the `IsAutoRange` 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);
stftview[0].STFT2DViewModel.IsAutoRange = False;
```

#### Remarks

This flag determines whether the Min and Max values of the legend are set automatically or manually.
If this property is set to `true`, the Min and Max values cannot be set manually.
In the UI, this property is represented under the "Legend" category with the property name "AutoRange".

### LegendFontColor

Gets or sets the font color of the legend.

```csharp theme={null}
Color LegendFontColor { get; set; }
```

#### Property Value

[Color](https://learn.microsoft.com/dotnet/api/system.windows.media.color)

#### Examples

The following example demonstrates how to use the `LegendFontColor` 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.LegendFontColor = Colors.Red;
```

#### Remarks

This property allows you to set the font color of the legend.
In the UI, this property is represented under the "Legend" category with the property name "Font Color".

### LegendFontSize

Gets or sets the font size of the legend.

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

#### Property Value

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

#### Examples

The following example demonstrates how to use the `LegendFontSize` 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.LegendFontSize = 15;
```

#### Remarks

This property allows you to set the font size of the legend.
In the UI, this property is represented under the "Legend" category with the property name "Font Size".

### Max

Gets or sets the maximum value of the legend.

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

#### Property Value

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

#### Examples

The following example demonstrates how to use the `Max` 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.Max = 100;
```

#### Remarks

This property allows you to set the maximum value of the legend manually if IsAutoRange is `false`.
If IsAutoRange is `true`, the maximum value is determined automatically.
In the UI, this property is represented under the "Legend" category with the property name "Max".

### Min

Gets or sets the minimum value of the legend.

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

#### Property Value

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

#### Examples

The following example demonstrates how to use the `Min` 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.Min = 10;
```

#### Remarks

This property allows you to set the minimum value of the legend manually if IsAutoRange is `false`.
If IsAutoRange is `true`, the minimum value is determined automatically.
In the UI, this property is represented under the "Legend" category with the property name "Min".

## Methods

### ExportAllCurves(string)

Exports all curves contained in the chart to the specified file path without displaying a file save dialog.

```csharp theme={null}
void ExportAllCurves(string filepath)
```

#### Parameters

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

The file path where the curves will be saved.

#### Examples

The following example demonstrates how to use the `ExportAllCurves` 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.ExportAllCurves(r"D:\allcurves.txt");
```

#### Remarks

This method exports all data series contained in the chart without displaying a file save dialog.
It accepts a file path as a parameter and saves the curves directly to that location.
This method is recommended for use with the OperationAPI, especially for repetitive tasks or scenarios
requiring automation.

### ExportAllDataSeries()

Exports all data series included in the chart.

```csharp theme={null}
void ExportAllDataSeries()
```

#### Examples

The following example demonstrates how to use the `ExportAllDataSeries` 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.ExportAllDataSeries();
```

#### Remarks

This method exports all curves contained in the chart. When used via the OperationAPI, a file dialog appears
on the screen to specify the file save location. Therefore, it is not recommended for repetitive tasks or
scenarios requiring automation. Instead, it is recommended to use the ExportAllCurves() method,
which does not display a file save dialog.
