CornerAnnotation#
- class CornerAnnotation(*args, **kwargs)[source]#
Text annotation in four corners.
This is an annotation object that manages four text actors / mappers to provide annotation in the four corners of a viewport.
- Parameters:
- position
str| bool |int Position of the text. Either the name of a corner,
Truefor the upper left one, or the index of a corner.- text
str Text input.
- prop
pyvista.TextProperty, optional Text property.
- linear_font_scale_factor
float, optional Linear font scale factor.
- name
str, optional The name of this actor used when tracking on a plotter.
Added in version 0.45.
- position
Examples#
Download Python source code | Download Jupyter notebook
Create text annotation in four corners.
>>> import pyvista as pv
>>> text = pv.CornerAnnotation(0, 'text')
>>> prop = text.prop
Inheritance#
Inherited members are documented on _NameMixin.
See them all under Inherited Attributes.
Wraps vtkCornerAnnotation.
Attributes#
Font scaling factors. |
|
Property of this actor. |
Inherited Attributes#
Get or set the unique name identifier used by PyVista. |
Methods#
|
Get the text to be displayed for each corner. |
|
Set the text to be displayed for each corner. |