(self, items)
Sets the names of the nodes in the dendrogram
Sets the names of the nodes in the dendrogram
Sets the names of the nodes in the dendrogram
def names(self, items):
        """Sets the names of the nodes in the dendrogram"""
        if items is None:
            self._names = None
            return

        items = list(items)
        if len(items) < self._nitems:
            raise ValueError("must specify at least %d names" % self._nitems)

        n = self._nitems + self._nmerges
        self._names = items[:n]
        if len(self._names) < n:
            self._names.extend("" for _ in range(n - len(self._names)))
def names ( self , items ) : if items is None : self . _names = None return items = list ( items ) if len ( items ) < self . _nitems : raise ValueError ( "must specify at least %d names" % self . _nitems ) n = self . _nitems + self . _nmerges self . _names = items [ : n ] if len ( self . _names ) < n : self . _names . extend ( "" for _ in range ( n - len ( self . _names ) ) )