def _plot_item(self, context, horiz, idx, x, y):
    'Plots a dendrogram item to the given Cairo context\n\n        @param context: the Cairo context we are plotting on\n        @param horiz: whether the dendrogram is horizontally oriented\n        @param idx: the index of the item\n        @param x: the X position of the item\n        @param y: the Y position of the item\n        '
    if ((self._names is None) or (self._names[idx] is None)):
        return
    height = self._item_box_size(context, True, idx)[1]
    if horiz:
        context.move_to(x, (y + height))
        context.show_text(str(self._names[idx]))
    else:
        context.save()
        context.translate(x, y)
        context.rotate(((- pi) / 2.0))
        context.move_to(0, height)
        context.show_text(str(self._names[idx]))
        context.restore()
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
def _plot_item(self, context, horiz, idx, x, y):
    'Plots a dendrogram item to the given Cairo context\n\n        @param context: the Cairo context we are plotting on\n        @param horiz: whether the dendrogram is horizontally oriented\n        @param idx: the index of the item\n        @param x: the X position of the item\n        @param y: the Y position of the item\n        '
    if ((self._names is None) or (self._names[idx] is None)):
        return
    height = self._item_box_size(context, True, idx)[1]
    if horiz:
        context.move_to(x, (y + height))
        context.show_text(str(self._names[idx]))
    else:
        context.save()
        context.translate(x, y)
        context.rotate(((- pi) / 2.0))
        context.move_to(0, height)
        context.show_text(str(self._names[idx]))
        context.restore()