location_x#
- line.location_x(p0: float, p1: float) int #
Specifies the x/y coordinate of an endpoint for the selected line in the graphics window.
- Args:
- p0:
‘index’ Must be either 1 or 2, depending on which endpoint is being specified.
- p1:
‘coord’ Specifies the x/y coordinate. 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.line.select_begin(1) # WARNING: following line includes OBSOLETE call (ensight.line.location_x). ensight.line.location_x(1,0.5) # WARNING: following line includes OBSOLETE call (ensight.line.location_y). ensight.line.location_y(1,0.6) # WARNING: following line includes OBSOLETE call (ensight.line.location_x). ensight.line.location_x(2,0.1) # WARNING: following line includes OBSOLETE call (ensight.line.location_y). ensight.line.location_y(2,0.3)
- Returns:
zero on success, non-zero on error