location_x#

text.location_x(p0: float) int#

Specifies the x/y coordinate of the selected text in the currently selected viewport.

The text position can also be in reference to a specific viewport.
See “text: relative_viewport” command.
Args:
p0:

‘coord’ A value of 0.0 indicates the left/bottom side of the window, while a value of 1.0 indicates the right/top side.

Examples:
ensight.text.select_begin(1)
ensight.text.relative_viewport(2)
ensight.text.location_x(0.5)
ensight.text.location_y(0.5)
ensight.text.justification("center")
Returns:

zero on success, non-zero on error