def insertIndent():
            if self.useTabs:
                cursor.insertText('\t')
            else:  # indent to integer count of indents from line start
                charsToInsert = self.width - (len(self._qpart.textBeforeCursor()) % self.width)
                cursor.insertText(' ' * charsToInsert)
def show_clusters(clusters, sample, covariances, means, figure=None, display=True):
        """!
        @brief Draws clusters and in case of two-dimensional dataset draws their ellipses.
        @details Allocated figure by this method should be closed using `close()` method of this visualizer.