pyvista.Text#
- class Text(*args, **kwargs)[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.
- name
str,optional The name of this actor used when tracking on a plotter.
Added in version 0.45.
- 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.