def updateLabel(self, jointName, jointValue):

        slider = self.slidersMap[jointName]
        label = self.labelMap[slider]

        fill = 6 if jointValue >= 0 else 5

        if jointName in ['base_x', 'base_y', 'base_z']:
            label.text = str('%.3f' % jointValue).center(fill, ' ')
        else:
            label.text = str('%.1f' % math.degrees(jointValue)).center(fill, ' ')
dataset/ETHPy150Open RobotLocomotion/director/src/python/tests/testAtlasCommand.py/JointTeleopPanel.updateLabel/original