class_docstr: Draw the Text annotation object
class_docstr_tok: ["Draw","the","Text","annotation","object"]
code: def draw_annotation(self, axis, data, opts):
      (
          x,
          y,
          text,
          fontsize,
          horizontalalignment,
          verticalalignment,
          rotation,
      ) = data
      if self.invert_axes:
          x, y = y, x
      opts["fontsize"] = fontsize
      return [
          axis.text(
              x,
              y,
              text,
              horizontalalignment=horizontalalignment,
              verticalalignment=verticalalignment,
              rotation=rotation,
              **opts,
          )
      ]
  
imports: import matplotlib
  import numpy
  import pandas
  import param
  from matplotlib import patches
  from matplotlib.lines import Line2D
  from ...core.options import abbreviated_exception
  from ...core.util import match_spec
  from ...element import HLines, HSpans, VLines, VSpans
  from .element import ColorbarPlot, ElementPlot
  from .plot import mpl_rc_context
label_desc: Use image node_id 1 for calling the TextPlot obj's underlying member method code with example usage: obj.draw_annotation(axis, data, opts) and returns: list