def _plot_dendrogram(ax_dendrogram, table, edges):
    """ Plots the actual dendrogram.
    Parameters
    ----------
    ax_dendrogram : matplotlib.axes.Axes
        Contains the matplotlib axes in which the dendrogram will be plotted.
    table : pandas.DataFrame
        Contain sample/feature labels along with table of values.
        Rows correspond to samples, and columns correspond to features.
    edges : pd.DataFrame
        (x,y) coordinates for edges in the heatmap.
    """
    offset = 0.5
    for i in range(len(edges.index)):
        row = edges.iloc[i]
        ax_dendrogram.plot([row.x0, row.x1], [row.y0 - offset, row.y1 -
            offset], '-k')
    ax_dendrogram.set_ylim([-offset, table.shape[0] - offset])
    ax_dendrogram.set_yticks([])
    ax_dendrogram.set_xticks([])
