<vizinfo>.alignment

Adjust the alignment of the info box

 

<vizinfo>.alignment(
    mode    

)

 

mode

The alignment mode for the info box. Can be one of the following values:

Alignment Modes

vizinfo.UPPER_RIGHT

Align the info box to the upper right corner. (Default)

vizinfo.UPPER_LEFT

Align the info box to the upper left corner.

vizinfo.LOWER_RIGHT

Align the info box to the lower right corner.

vizinfo.LOWER_LEFT

Align the info box to the lower left corner.


Remarks

This command will change which corner the info box is aligned to. By default, the info box is aligned to the upper right corner.

Return Value

None

Example

import vizinfo

info = vizinfo.add('Script info')

#Place info box in upper left corner of screen
info.translate(0.05,0.95)
info.alignment(vizinfo.UPPER_LEFT)

See also

<vizinfo>.translate
<vizinfo>.scale