class_docstr: Object for drawing tree of similarities between data rows/columns
class_docstr_tok: ["Object","for","drawing","tree","of","similarities","between","data","rows\/columns"]
docstr: Calculates a dendrogram based on the linkage matrix
  
  Made a separate function, not a property because don't want to
  recalculate the dendrogram every time it is accessed.
  
  Returns
  -------
  dendrogram : dict
      Dendrogram dictionary as returned by scipy.cluster.hierarchy
      .dendrogram. The important key-value pairing is
      "reordered_ind" which indicates the re-ordering of the matrix
docstr_tok: ["Calculates","a","dendrogram","based","on","the","linkage","matrix","Made","a","separate","function",",","not","a","property","because","do","n't","want","to","recalculate","the","dendrogram","every","time","it","is","accessed",".","Returns","--","--","--","-","dendrogram",":","dict","Dendrogram","dictionary","as","returned","by","scipy.cluster.hierarchy",".dendrogram",".","The","important","key-value","pairing","is","``","reordered_ind","''","which","indicates","the","re-ordering","of","the","matrix"]
code: def calculate_dendrogram(self):
      """Calculates a dendrogram based on the linkage matrix
  
      Made a separate function, not a property because don't want to
      recalculate the dendrogram every time it is accessed.
  
      Returns
      -------
      dendrogram : dict
          Dendrogram dictionary as returned by scipy.cluster.hierarchy
          .dendrogram. The important key-value pairing is
          "reordered_ind" which indicates the re-ordering of the matrix
      """
      return hierarchy.dendrogram(
          self.linkage, no_plot=True, color_threshold=-np.inf
      )
  
imports: import warnings
  import matplotlib
  from matplotlib.collections import LineCollection
  import matplotlib.pyplot
  from matplotlib import gridspec
  import numpy
  import pandas
  from .None import cm
  from .axisgrid import Grid
  from ._compat import get_colormap
  from .utils import despine, axis_ticklabels_overlap, relative_luminance, to_utf8, _draw_figure
label_desc: Use image node_id 5 for calling the _DendrogramPlotter obj's underlying member method code with example usage: obj.calculate_dendrogram() and returns: hierarchy