<vizinfo>.translate

Change the on-screen coordinates of the info box

 

<vizinfo>.translate(
    [x,y]    # 0 to 1

)

 

[x,y]

The new position of the info box in screen coordinates


Remarks

This command will change the coordinates of the info box to the given screen coordinates. The position will be centered around the info box button. The default position of the info box is [0.95,0.95]

Return Value

None

Example

import vizinfo

info = vizinfo.add('Script information')

#Place info box at top middle of the screen
info.translate(0.5,0.95)

See also

<vizinfo>.alignment
<vizinfo>.scale