pyvista.Text#
- class Text(text=None, position=None, prop=None)[source]#
Define text by default theme.
- Parameters:
- text
str
,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.
- position
Sequence
[float
],optional
The position coordinate.
- prop
pyvista.TextProperty
,optional
The property of this actor.
- text
Examples
Create a text with text’s property.
>>> from pyvista import Text >>> text = Text() >>> prop = text.prop
Methods
Attributes
Text string to be displayed.
Position coordinate.
Property of this actor.