pyvista.Text#

class Text(text=None, position=None, prop=None)[source]#

Define text by default theme.

Parameters:
textstr, optional

Text string to be displayed. “n” is recognized as a carriage return/linefeed (line separator). The characters must be in the UTF-8 encoding.

positionSequence[float], optional

The position coordinate.

proppyvista.TextProperty, optional

The property of this actor.

Examples

Create a text with text’s property.

>>> from pyvista import Text
>>> text = Text()
>>> prop = text.prop

Methods

Attributes

Text.input

Text string to be displayed.

Text.position

Position coordinate.

Text.prop

Property of this actor.