poITensorCtrl RenamePlotStyle

Renames an existing/old plot style with a new name.

Syntax

poITensorCtrl_handle RenamePlotStyle old_style_name new_style_name

Application

HyperView Tcl Modify

Description

This command renames an existing/old plot style with a new name.
Note: The new plot style name must be unique.

Inputs

old_style_name
The name of the old/existing plot style.
new_style_name
The new name to be given to the old/existing plot style.

Example

To rename a tensor plot style:
hwi OpenStack
hwi GetSessionHandle session_handle
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetClientHandle client_handle
client_handle GetModelHandle model_handle [client_handle GetActiveModel]
model_handle GetResultCtrlHandle result_handle
result_handle GetTensorCtrlHandle tensor_handle
tensor_handle RenamePlotStyle old_style_name new_style_name
hwi CloseStack

Errors

Returns an error if the tensor controller handle is invalid, or if the old plot style name could not be found, or if the new view name is not unique.