'Figure out which parts of labels can be dropped to avoid repetition.'

def simplify_labels(self):

    self.sort()
    for axis in self.world:
        t1 = self.text[axis][0]
        for i in range(1, len(self.world[axis])):
            t2 = self.text[axis][i]
            if (len(t1) != len(t2)):
                t1 = self.text[axis][i]
                continue
            start = 0
            for j in range((len(t1) - 1)):
                if (t1[j] != t2[j]):
                    break
                if (t1[j] not in '-0123456789.'):
                    start = (j + 1)
            t1 = self.text[axis][i]
            if (start != 0):
                self.text[axis][i] = self.text[axis][i][start:]
