class_docstr: Default Cairo drawer object for dendrograms.
docstr: Plots a dendrogram item to the given Cairo context
  
  @param context: the Cairo context we are plotting on
  @param horiz: whether the dendrogram is horizontally oriented
  @param idx: the index of the item
  @param x: the X position of the item
  @param y: the Y position of the item
docstr_tok: ["Plots","a","dendrogram","item","to","the","given","Cairo","context","@","param","context",":","the","Cairo","context","we","are","plotting","on","@","param","horiz",":","whether","the","dendrogram","is","horizontally","oriented","@","param","idx",":","the","index","of","the","item","@","param","x",":","the","X","position","of","the","item","@","param","y",":","the","Y","position","of","the","item"]
code: def _plot_item(self, dendro, context, horiz, idx, x, y):
      """Plots a dendrogram item to the given Cairo context
  
      @param context: the Cairo context we are plotting on
      @param horiz: whether the dendrogram is horizontally oriented
      @param idx: the index of the item
      @param x: the X position of the item
      @param y: the Y position of the item
      """
      if dendro._names is None or dendro._names[idx] is None:
          return
  
      height = self._item_box_size(dendro, context, True, idx)[1]
      if horiz:
          context.move_to(x, y + height)
          context.show_text(str(dendro._names[idx]))
      else:
          context.save()
          context.translate(x, y)
          context.rotate(-pi / 2.0)
          context.move_to(0, height)
          context.show_text(str(dendro._names[idx]))
          context.restore()
  
file_path: python-igraph/src/igraph/drawing/cairo/dendrogram.py
imports: from math import pi
  from igraph.drawing.utils import str_to_orientation
  from .base import AbstractCairoDrawer
label_desc: Use image node_id 3 for calling the CairoDendrogramDrawer obj's underlying member method code with example usage: obj._plot_item(dendro, context, horiz, idx, x, y) without return types