class_docstr: Matplotlib drawer object for dendrograms.
docstr: Plots a dendrogram item to the given Cairo context
  
  @param dendro: the dendrogram object
  @param orientation: 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","dendro",":","the","dendrogram","object","@","param","orientation",":","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, ax, orientation, idx, x, y):
      """Plots a dendrogram item to the given Cairo context
  
      @param dendro: the dendrogram object
      @param orientation: 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
  
      if orientation == "lr":
          ha, va, rotation = "right", "center", 0
      elif orientation == "rl":
          ha, va, rotation = "left", "center", 0
      elif orientation == "tb":
          ha, va, rotation = "center", "bottom", 90
      else:
          ha, va, rotation = "center", "top", 90
  
      # TODO: offset a little? But remember zoom in callbacks
  
      ax.text(
          x,
          y,
          dendro._names[idx],
          ha=ha,
          va=va,
          rotation=rotation,
      )
  
imports: from igraph.drawing.baseclasses import AbstractDrawer
  from igraph.drawing.utils import str_to_orientation
  from .utils import find_matplotlib
label_desc: Use image node_id 2 for calling the MatplotlibDendrogramDrawer obj's underlying member method code with example usage: obj._plot_item(dendro, ax, orientation, idx, x, y) without return types