def addLabel(self, label, row, col, width=11,
                 height=None,
                 style="styleSubHeader"):

        cell = survey_MatrixElement(row, col, label, style=style)
        if height == None:
            height = len(label) / (2 * width) + 1
        cell.merge(horizontal=width - 1, vertical=height - 1)
        try:
            self.matrix.addElement(cell)
        except Exception as msg:
            current.log.error(msg)
            return (row, col)
        endrow = row + height
        endcol = col + width
        return (endrow, endcol)

    # -------------------------------------------------------------------------
Remove discontinuities in angle channels so that they don't cause artifacts in algorithms that rely on the smoothness of the functions.
dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/survey_DataMatrixBuilder.addLabel--crossover with--dataset/ETHPy150Open SheffieldML/GPy/GPy/util/mocap.py/skeleton.smooth_angle_channels