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

# RATimePlotWindow

### *class* RATimePlotWindow

**Methods:**

| Name | Description |
| - | - |
| [`ClearCurves`](#generated.RATimePlotWindow.ClearCurves)() | Remove all curve from the window |
| [`CloseWindow`](#generated.RATimePlotWindow.CloseWindow)() | Removes this window from the application. |
| [`CreateMark`](#generated.RATimePlotWindow.CreateMark)(\[image\_property, statistic\_name, ...]) | Creates a mark in the plot window with the given parameters. |
| [`CreateTimeMark`](#generated.RATimePlotWindow.CreateTimeMark)(time\_step\[, message]) | Creates a mark in the given time with the given message. |
| [`ExportCurves`](#generated.RATimePlotWindow.ExportCurves)(filename\[, curve\_names, ...]) | Export a set of curves to a CSV file. |
| [`GetAxisLimits`](#generated.RATimePlotWindow.GetAxisLimits)(curve\_name\[, unit]) | Return the minimum and maximum values on the axis associated with the given curve name |
| [`GetAxisUnit`](#generated.RATimePlotWindow.GetAxisUnit)(curve\_name) | Get the unit for the axis associated with the given curve |
| [`GetCurvesDescription`](#generated.RATimePlotWindow.GetCurvesDescription)() | |
| [`GetTable`](#generated.RATimePlotWindow.GetTable)() | |
| [`GetTimeStep`](#generated.RATimePlotWindow.GetTimeStep)(time\_step\[, accept\_global]) | Get the timestep corresponding to the given time. |
| [`GetTitle`](#generated.RATimePlotWindow.GetTitle)() | |
| [`InvalidateWindow`](#generated.RATimePlotWindow.InvalidateWindow)() | Invalidates the window and request a redraw. |
| [`Resize`](#generated.RATimePlotWindow.Resize)(width, height) | Changes the size of the plot. |
| [`SetAxisByProperty`](#generated.RATimePlotWindow.SetAxisByProperty)() | Change the axis behavior so all curves of the same property will share the same axis. |
| [`SetAxisByQuantity`](#generated.RATimePlotWindow.SetAxisByQuantity)() | Change the axis behavior so all curves with the same quantity will share the same axis. |
| [`SetAxisLimits`](#generated.RATimePlotWindow.SetAxisLimits)(curve\_name, min\_value, max\_value) | Change the limits for axis associated to the given curve\_name |
| [`SetAxisUnit`](#generated.RATimePlotWindow.SetAxisUnit)(curve\_name, unit) | Change the unit for the axis associated with the given curve |
| [`SetBottomAxisUnit`](#generated.RATimePlotWindow.SetBottomAxisUnit)(unit) | Change the unit of the bottom X axis |
| [`SetColoringStrategyByElement`](#generated.RATimePlotWindow.SetColoringStrategyByElement)() | Change the visual of the curves so all curves associated with an element will share the same visual appearance. |
| [`SetColoringStrategyByProperty`](#generated.RATimePlotWindow.SetColoringStrategyByProperty)() | Change the visual of the curves so all curves associated from the same simulation will share the same visual appearance. |
| [`SetColoringStrategyByStudy`](#generated.RATimePlotWindow.SetColoringStrategyByStudy)() | Change the visual of the curves so all curves associated from the same simulation will share the same visual appearance. |
| [`SetCurrentTimeStep`](#generated.RATimePlotWindow.SetCurrentTimeStep)(time\_step) | Sets the current time step. |
| [`SetSelectedWindow`](#generated.RATimePlotWindow.SetSelectedWindow)(\[window\_name]) | Sets the given window as the currently selected window. |
| [`SetStickEnabled`](#generated.RATimePlotWindow.SetStickEnabled)(\[enabled]) | |
| [`ShowCurve`](#generated.RATimePlotWindow.ShowCurve)(element\_name, curve\_name\[, unit, ...]) | Shows a curve in a Time-plot window. |
| [`ShowGridFunctionStatisticsCurve`](#generated.RATimePlotWindow.ShowGridFunctionStatisticsCurve)(...\[, ...]) | Shows a grid function statistics curve in a Time-plot window. |
| [`ShowMaximized`](#generated.RATimePlotWindow.ShowMaximized)() | Maximize the window, making it fill the entire screen space. |
| [`ShowMinimized`](#generated.RATimePlotWindow.ShowMinimized)() | Minimize the window, effectively hiding it from view and placing it in the taskbar |
| [`ShowNormal`](#generated.RATimePlotWindow.ShowNormal)() | Restore the window to its normal size, which is neither minimized nor maximized. |
| [`Snapshot`](#generated.RATimePlotWindow.Snapshot)(filename\[, width, height, ...]) | Take a snapshot from the window content and save it in the filename given. |

**Attributes:**

| Name |
| - |
| [`app`](#generated.RATimePlotWindow.app) |

#### ClearCurves()

Remove all curve from the window

#### CloseWindow()

Removes this window from the application.

#### CreateMark(image\_property: str | None = None, statistic\_name: str | None = None, image\_value: float | None = None, image\_unit: str | None = None, domain\_value: float | None = None, domain\_unit: str | None = None, message: str = '')

Creates a mark in the plot window with the given parameters.

* **Parameters:**
  * **image\_property** – The name of the property curve image to be used for the mark.
  * **statistic\_name** – The name of the statistic to be used for the image property. Possible values are:
    ‘average’, ‘min’, ‘max’, ‘sum’, ‘sum squared’, ‘variance’, ‘std deviation’, and ‘cell’.
  * **image\_value** – The value of the image property to be used for the mark.
  * **image\_unit** – The unit of the image value (if not specified, the unit of the curve will be used).
  * **domain\_value** – The value of the domain to be used for the mark.
  * **domain\_unit** – The unit of the domain value (if not specified, the unit of the bottom axis will be used).
  * **message** – The label of the mark.
* **Returns:**
  A KAPlotMark object representing the created mark.

#### CreateTimeMark(time\_step, message=None)

Creates a mark in the given time with the given message.

* **Parameters:**
  * **time\_step** (*unicode* *,* *ITimeStep* *,* *int* *or* *tuple*) –

    Either a string with
    : ’current’ identifying the current time step

    or an ITimeStep identifying the time to get the limits.

    or an int identifying the time step index to be used based on the global time set .

    or a tuple containing the values for the year, month, day, hour. minute and second.
    : (e.g (2009, 10, 01) maps to Oct 01, 2009, and (2009, 10, 01, 23, 12, 01) maps to the
    same day but it also specifies the hour (23:12:01).
  * **message** (*unicode*) – The mark label

#### ExportCurves(filename, curve\_names=None, merge\_domain=\[], interpolate\_values=False)

Export a set of curves to a CSV file.

* **Parameters:**
  * **filename** (*str*) – The name of the csv file to be generated.
  * **curve\_names** (*list* *of* *str* *or* *None*) – The names of the curves to export. If None is passed, all curves in the plot will be exported.
  * **merge\_domain** (*list* *of* *str*) – Defines the name of the curves whose domain should be taken into account on making the
    merge.
  * **interpolate\_values** (*bool*) – True if the curves’ values should be interpolated.

#### GetAxisLimits(curve\_name, unit=None)

Return the minimum and maximum values on the axis associated with the given curve name

* **Parameters:**
  * **curve\_name** (*unicode*) – The name of the curve
  * **unit** (*unicode*) – The unit in which the values should be returned
    (if not specified no conversion is made).
* **Return type:**
  tuple(float, float)
* **Returns:**
  The min and max values

#### GetAxisUnit(curve\_name)

Get the unit for the axis associated with the given curve

* **Parameters:**
  **curve\_name** (*unicode*) – The name of the curve
* **Return type:**
  unicode
* **Returns:**
  The unit of the axis

#### GetCurvesDescription()

* **Return type:**
  list(tuple(unicode, unicode, unicode))
* **Returns:**
  Returns a list of description for each in the plot.
  Each curve is described by the property name, element name and simulation name

#### GetTable()

* **Return type:**
  KATable
* **Returns:**
  The table representation of the plot window

#### GetTimeStep(time\_step, accept\_global=False)

Get the timestep corresponding to the given time.

* **Parameters:**
  * **time\_step** (*unicode* *,* *ITimeStep* *or* *int*) –

    Either a string with
    : ’current’ identifying the current time step
    ‘global’ identifying that the global limits should be gotten
    (note that if accept\_global=False and ‘global’ is passed, an error is raised).

    or an ITimeStep identifying the time to get the limits

    or an int identifying the time step index to be used based on the global time set
  * **accept\_global** (*bool*) – If True, a global time step is accepted (and returns None), otherwise, an error is
    raised if ‘global’ is passed.
* **Return type:**
  ITimeStep
* **Returns:**
  Returns the time step to be used or None if accept\_global == True and the time
  step passed is ‘global’.

#### GetTitle()

* **Return type:**
  unicode
* **Returns:**
  The plot window title

#### InvalidateWindow()

Invalidates the window and request a redraw.

#### Resize(width, height)

Changes the size of the plot.

* **Parameters:**
  * **width** (*int*) – The width to be set for the plot.
  * **height** (*int*) – The height to be set for the plot.

#### SetAxisByProperty()

Change the axis behavior so all curves of the same property will share the same axis.

#### SetAxisByQuantity()

Change the axis behavior so all curves with the same quantity will share the same axis.

#### SetAxisLimits(curve\_name, min\_value, max\_value, unit=None)

Change the limits for axis associated to the given curve\_name

* **Parameters:**
  * **curve\_name** (*unicode*) – The name of the curve to select the axis
  * **min\_value** (*float*) – The minimum value
  * **max\_value** (*float*) – The maximum value
  * **unit** (*unicode*) – The unit in which the min and max are given
    (if not specified no conversion is made).
* **Return type:**
  bool
* **Returns:**
  Whether it was possible to set the axis limits

#### SetAxisUnit(curve\_name, unit)

Change the unit for the axis associated with the given curve

* **Parameters:**
  * **curve\_name** (*unicode*) – The name of the curve
  * **unit** (*unit*) – The unit to be set

#### SetBottomAxisUnit(unit)

Change the unit of the bottom X axis

* **Parameters:**
  **unit** (*unicode*) – The new axis unit

#### SetColoringStrategyByElement()

Change the visual of the curves so all curves associated with an element will share the
same visual appearance.

#### SetColoringStrategyByProperty()

Change the visual of the curves so all curves associated from the same simulation
will share the same visual appearance.

#### SetColoringStrategyByStudy()

Change the visual of the curves so all curves associated from the same simulation
will share the same visual appearance.

#### SetCurrentTimeStep(time\_step)

Sets the current time step.

* **Parameters:**
  **time\_step** (*ITimeStep*) – The time step to be considered the ‘current’ time step.

#### SetSelectedWindow(window\_name=None)

Sets the given window as the currently selected window.

* **Parameters:**
  **window\_name** (*unicode*) – The name of the window that should be selected (if not passed, the window which has
  this method called is selected).

#### SetStickEnabled(enabled=True)

* **Parameters:**
  **bool\_enabled**

#### ShowCurve(element\_name, curve\_name, unit=None, window\_name=None)

Shows a curve in a Time-plot window.

* **Parameters:**
  * **element\_name** (*unicode*) – The name of the element that has the curve.
  * **curve\_name** (*unicode*) – The name of the curve to be shown.
  * **unit** (*unicode*) – The unit in which the curve should be shown (if not specified, given by the simulator).
  * **window\_name** (*unicode*) – The name of the window in which the curve should be shown (if not given, the current
    window will be used)
* **Return type:**
  bool
* **Returns:**
  Return True if a curve was actually shown and False otherwise (i.e.: window could not
  be found, element not available).

#### ShowGridFunctionStatisticsCurve(element\_name, grid\_function\_name, statistic\_name='average', unit=None, window\_name=None)

Shows a grid function statistics curve in a Time-plot window.

* **Parameters:**
  * **element\_name** (*unicode*) – The name of the element that has the curve.
  * **grid\_function\_name** (*unicode*) – The name of the Grid Function to be shown.
  * **statistic\_name** (*unicode*) – The name of the Statistic to use. Possible values are:
    ‘Average’, ‘Min’, ‘Max’, ‘Sum’, ‘Sum Squared’, ‘Variance’, ‘STD Deviation’, and ‘Cell’
  * **unit** (*unicode*) – The unit in which the curve should be shown (if not specified, given by the simulator).
  * **window\_name** (*unicode*) – The name of the window in which the curve should be shown (if not given, the current
    window will be used)
* **Return bool:**
  Return True if a curve was actually shown and False otherwise (i.e.: window could not
  be found, element not available).

#### ShowMaximized()

Maximize the window, making it fill the entire screen space.

#### ShowMinimized()

Minimize the window, effectively hiding it from view and placing it in the taskbar

#### ShowNormal()

Restore the window to its normal size, which is neither minimized nor maximized.

#### Snapshot(filename, width=None, height=None, magnification=None, keep\_aspect\_ratio=None)

Take a snapshot from the window content and save it in the filename given.

* **Parameters:**
  * **filename** (*unicode*) – The file name to save the snapshot.
    .. note:: the filename must contain the extension. e.g.: ‘../snapshot.png’
  * **width** (*int*) – The snapshot width (only used for plots, not 3d windows).
    .. note:: the current window width is used if it is None
  * **height** (*int*) – The snapshot height (only used for plots, not 3d windows).
    .. note:: the current window height is used if it is None
  * **magnification** (*int*) – An int value to multiply the snapshot size.
    .. note:: if this parameter is specified, the width and height parameters are ignored.
  * **keep\_aspect\_ratio** (*bool*) – Only used for plots, not 3d windows.
    If True the current plot size is scaled to a rectangle as large as possible inside a
    given rectangle (defined by the size given), keeping the aspect ratio.

#### *property* app

* **Return type:**
  KAApplication
* **Returns:**
  The application
