class_docstr: 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
      Position of the text.
  
  text : str
      Text input.
  
  prop : pyvista.TextProperty, optional
      Text property.
  
  linear_font_scale_factor : float, optional
      Linear font scale factor.
  
  Examples
  --------
  Create text annotation in four corners.
  
  >>> from pyvista import CornerAnnotation
  >>> text = CornerAnnotation(0, 'text')
  >>> prop = text.prop
class_docstr_tok: ["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","Position","of","the","text",".","text",":","str","Text","input",".","prop",":","pyvista.TextProperty",",","optional","Text","property",".","linear_font_scale_factor",":","float",",","optional","Linear","font","scale","factor",".","Examples","--","--","--","--","Create","text","annotation","in","four","corners",".",">",">",">","from","pyvista","import","CornerAnnotation",">",">",">","text","=","CornerAnnotation","(","0",",","'text","'",")",">",">",">","prop","=","text.prop"]
docstr: Set the text to be displayed for each corner.
  
  Parameters
  ----------
  position : str | bool
      Position of the text.
  
  text : str
      Text to be displayed for each corner.
code: def set_text(self, position, text):
      """Set the text to be displayed for each corner.
  
      Parameters
      ----------
      position : str | bool
          Position of the text.
  
      text : str
          Text to be displayed for each corner.
      """
      corner_mappings = {
          "lower_left": self.LowerLeft,
          "lower_right": self.LowerRight,
          "upper_left": self.UpperLeft,
          "upper_right": self.UpperRight,
          "lower_edge": self.LowerEdge,
          "upper_edge": self.UpperEdge,
          "left_edge": self.LeftEdge,
          "right_edge": self.RightEdge,
      }
      corner_mappings["ll"] = corner_mappings["lower_left"]
      corner_mappings["lr"] = corner_mappings["lower_right"]
      corner_mappings["ul"] = corner_mappings["upper_left"]
      corner_mappings["ur"] = corner_mappings["upper_right"]
      corner_mappings["top"] = corner_mappings["upper_edge"]
      corner_mappings["bottom"] = corner_mappings["lower_edge"]
      corner_mappings["right"] = corner_mappings["right_edge"]
      corner_mappings["r"] = corner_mappings["right_edge"]
      corner_mappings["left"] = corner_mappings["left_edge"]
      corner_mappings["l"] = corner_mappings["left_edge"]
      if isinstance(position, str):
          position = corner_mappings[position]
      elif position is True:
          position = corner_mappings["upper_left"]
      self.SetText(position, text)
  
imports: from __future__ import annotations
  import os
  import pathlib
  from typing import Sequence
  import pyvista
  from pyvista.core.utilities.misc import _check_range, no_new_attr
  from .None import _vtk
  from ._typing import ColorLike
  from .colors import Color
  from .themes import Theme
  from .tools import FONTS
label_desc: Use image node_id 3 for calling the CornerAnnotation obj's underlying member method code with example usage: obj.set_text(position, text) without return types