    

 ## On this page

  

 

 # Interface IOperationsCustomAxisViewModel

 Last update: 16.07.2025 

Namespace: [VM.Operations.Post.Interfaces](VM.Operations.Post.Interfaces.md)  
Assembly: VM.Operations.Post.dll

Defines the properties for a custom axis view model in an operations.

```python
public interface IOperationsCustomAxisViewModel : IOperationsAxisViewModelBase

```

#### Implements

[IOperationsAxisViewModelBase](VM.Operations.Post.Interfaces.IOperationsAxisViewModelBase.md)

## Examples

For an example that includes information about interfaces, see this example. To view the examples, refer to the location of the 'Install\_Path\\Motion\\Document\\Postprocessor API for Python.zip' file.

```
# IOperationsCustomAxisViewModel.py
import sys

current_dir = __file__.rsplit('\\', 1)[0]
external_modules_path = current_dir + '\\..\\..\\Modules'
sys.path.append(external_modules_path)

from OperationAPI import *

# Start the headless application interface
applicationHandler = ApplicationHandler()

# Import result file
result_file_path = get_result_file_path()

# Set array about result file
filepaths = List[str]()
filepaths.Add(result_file_path)

# Open about result files
applicationHandler.AddDocument(filepaths)

# Get Page
page = applicationHandler.GetActivePage()

# Create PlotView
chartView = page.CreateChart("Chart")

# Set Background
axis = chartView.GetAxis("Y")
axis.LabelSize = 16
axis.LabelWeight = OperationAPIService.GetFontWeightFromString("Bold")
axis.FontColor = Colors.Red
axis.FontFace = FontFamily("Arial")
axis.Style = OperationAPIService.GetFontStyleFromString("Italic")

if axis.Default == False :
    axis.Decimal = 2
    axis.LabelFormatType = LabelFormatType.Number

if axis.IsAuto == False:
    axis.ScaleInterval = 5.0
    axis.ScaleMax = 100
    axis.ScaleMin = 10

axis.AxisType = AxisType.PositiveLogarithmic
if axis.AxisType == AxisType.PositiveLogarithmic:
    axis.LogarithmicBase = "10"

# Close the Pages
page.Close()

# Close Document
applicationHandler.CloseDocument(result_file_path)

```

## Properties

### <a id="VM_Operations_Post_Interfaces_IOperationsCustomAxisViewModel_AxisType"></a> AxisType

Gets or sets the scale type for the axis.

```python
AxisType AxisType { get; set; }

```

#### Property Value

AxisType

#### Examples

For an example that includes this property, see the [Interface IOperationsCustomAxisViewModel](VM.Operations.Post.Interfaces.IOperationsCustomAxisViewModel.md).

#### Remarks

Use this property to specify or retrieve the scale type for the axis. The available options are:

- - Linear scale.
- - Positive logarithmic scale.
- - Negative logarithmic scale.

### <a id="VM_Operations_Post_Interfaces_IOperationsCustomAxisViewModel_Decimal"></a> Decimal

Gets or sets the number of decimal places for the labels on the axis.

```python
int Decimal { get; set; }

```

#### Property Value

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

#### Examples

For an example that includes this property, see the [Interface IOperationsCustomAxisViewModel](VM.Operations.Post.Interfaces.IOperationsCustomAxisViewModel.md).

#### Remarks

Use this property to specify or retrieve the number of decimal places displayed in the labels on the axis.

### <a id="VM_Operations_Post_Interfaces_IOperationsCustomAxisViewModel_Default"></a> Default

Gets or sets a value indicating whether the decimal value for the axis labels is set automatically or manually.

```python
bool Default { get; set; }

```

#### Property Value

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

#### Examples

For an example that includes this property, see the [Interface IOperationsCustomAxisViewModel](VM.Operations.Post.Interfaces.IOperationsCustomAxisViewModel.md).

#### Remarks

Use this property to specify whether the decimal value for the axis labels should be set automatically or manually. If set to `false`, you can manually set the  property to determine the number of decimal places.

### <a id="VM_Operations_Post_Interfaces_IOperationsCustomAxisViewModel_FontColor"></a> FontColor

Gets or sets the color of the labels on the axis.

```python
Color FontColor { get; set; }

```

#### Property Value

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

#### Examples

For an example that includes this property, see the [Interface IOperationsCustomAxisViewModel](VM.Operations.Post.Interfaces.IOperationsCustomAxisViewModel.md).

#### Remarks

Use this property to specify or retrieve the color of the labels displayed on the axis.

### <a id="VM_Operations_Post_Interfaces_IOperationsCustomAxisViewModel_FontFace"></a> FontFace

Gets or sets the font family for the axis labels.

```python
FontFamily FontFace { get; set; }

```

#### Property Value

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

#### Examples

For an example that includes this property, see the [Interface IOperationsCustomAxisViewModel](VM.Operations.Post.Interfaces.IOperationsCustomAxisViewModel.md).

#### Remarks

Use this property to specify or retrieve the font family used for the labels on the axis.

### <a id="VM_Operations_Post_Interfaces_IOperationsCustomAxisViewModel_IsAuto"></a> IsAuto

Gets or sets a value indicating whether the axis range intervals are set automatically or manually.

```python
bool IsAuto { get; set; }

```

#### Property Value

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

#### Examples

For an example that includes this property, see the [Interface IOperationsCustomAxisViewModel](VM.Operations.Post.Interfaces.IOperationsCustomAxisViewModel.md).

#### Remarks

Use this property to specify whether the axis range intervals should be set automatically or manually. If set to `false`, you can manually set the intervals for the axis range.

### <a id="VM_Operations_Post_Interfaces_IOperationsCustomAxisViewModel_LabelFormatType"></a> LabelFormatType

Gets or sets the format type for the labels on the axis.

```python
LabelFormatType LabelFormatType { get; set; }

```

#### Property Value

LabelFormatType

#### Examples

For an example that includes this property, see the [Interface IOperationsCustomAxisViewModel](VM.Operations.Post.Interfaces.IOperationsCustomAxisViewModel.md).

#### Remarks

Use this property to specify or retrieve the format type for the decimal values displayed in the labels on the axis. The available options are:

- 
- 
- 

### <a id="VM_Operations_Post_Interfaces_IOperationsCustomAxisViewModel_LabelSize"></a> LabelSize

Gets or sets the font size of the labels on the axis.

```python
double LabelSize { get; set; }

```

#### Property Value

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

#### Examples

For an example that includes this property, see the [Interface IOperationsCustomAxisViewModel](VM.Operations.Post.Interfaces.IOperationsCustomAxisViewModel.md).

#### Remarks

Use this property to specify or retrieve the font size of the labels displayed on the axis.

### <a id="VM_Operations_Post_Interfaces_IOperationsCustomAxisViewModel_LabelWeight"></a> LabelWeight

Gets or sets the font weight of the labels on the axis.

```python
FontWeight LabelWeight { get; set; }

```

#### Property Value

[FontWeight](https://learn.microsoft.com/dotnet/api/system.windows.fontweight)

#### Examples

For an example that includes this property, see the [Interface IOperationsCustomAxisViewModel](VM.Operations.Post.Interfaces.IOperationsCustomAxisViewModel.md).

#### Remarks

Use this property to specify or retrieve the font weight of the labels displayed on the axis. The available options are:

- 
- 

### <a id="VM_Operations_Post_Interfaces_IOperationsCustomAxisViewModel_LogarithmicBase"></a> LogarithmicBase

Gets or sets the base for the logarithmic scale of the axis.

```python
string LogarithmicBase { get; set; }

```

#### Property Value

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

#### Examples

For an example that includes this property, see the [Interface IOperationsCustomAxisViewModel](VM.Operations.Post.Interfaces.IOperationsCustomAxisViewModel.md).

#### Remarks

This property is only applicable when the  is set to  or . Use this property to specify or retrieve the base value for the logarithmic scale displayed on the axis. Supported values are:

- "2"
- "3"
- "4"
- "5"
- "10"
- "E"

### <a id="VM_Operations_Post_Interfaces_IOperationsCustomAxisViewModel_ScaleInterval"></a> ScaleInterval

Gets or sets the scale interval of the axis.

```python
double ScaleInterval { get; set; }

```

#### Property Value

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

#### Examples

For an example that includes this property, see the [Interface IOperationsCustomAxisViewModel](VM.Operations.Post.Interfaces.IOperationsCustomAxisViewModel.md).

#### Remarks

This property is only applicable when  is set to `false`. Use this property to manually set the intervals for the axis range.

### <a id="VM_Operations_Post_Interfaces_IOperationsCustomAxisViewModel_ScaleMax"></a> ScaleMax

Gets or sets the maximum value of the axis scale.

```python
double ScaleMax { get; set; }

```

#### Property Value

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

#### Examples

For an example that includes this property, see the [Interface IOperationsCustomAxisViewModel](VM.Operations.Post.Interfaces.IOperationsCustomAxisViewModel.md).

#### Remarks

This property is only applicable when  is set to `false`. Use this property to manually set the maximum value for the axis scale.

### <a id="VM_Operations_Post_Interfaces_IOperationsCustomAxisViewModel_ScaleMin"></a> ScaleMin

Gets or sets the minimum value of the axis scale.

```python
double ScaleMin { get; set; }

```

#### Property Value

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

#### Examples

For an example that includes this property, see the [Interface IOperationsCustomAxisViewModel](VM.Operations.Post.Interfaces.IOperationsCustomAxisViewModel.md).

#### Remarks

This property is only applicable when  is set to `false`. Use this property to manually set the minimum value for the axis scale.

### <a id="VM_Operations_Post_Interfaces_IOperationsCustomAxisViewModel_Style"></a> Style

Gets or sets the font style for the axis.

```python
FontStyle Style { get; set; }

```

#### Property Value

[FontStyle](https://learn.microsoft.com/dotnet/api/system.windows.fontstyle)

#### Examples

For an example that includes this property, see the [Interface IOperationsCustomAxisViewModel](VM.Operations.Post.Interfaces.IOperationsCustomAxisViewModel.md).

#### Remarks

Use this property to specify or retrieve the font style used for the axis. The available options are:

- 
- 
- 

### <a id="VM_Operations_Post_Interfaces_IOperationsCustomAxisViewModel_Unit"></a> Unit

Gets the unit of the axis.

```python
string Unit { get; }

```

#### Property Value

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

#### Examples

For an example that includes this property, see the [Interface IOperationsCustomAxisViewModel](VM.Operations.Post.Interfaces.IOperationsCustomAxisViewModel.md).

#### Remarks

Use this property to specify or retrieve the unit displayed on the axis.