def interpolate(self, maxsize, unit=10000):
        maxsize = int(maxsize)
        for pos in range(unit, maxsize + unit, unit):
            if pos in self.x:
                continue
            self.xy.append([pos, 0])
        self.xy.sort()
        self.x, self.y = zip(*self.xy)
        logging.debug("After interpolate: {0}".format(len(self.x)))
dataset/ETHPy150Open tanghaibao/jcvi/graphics/coverage.py/XYtrack.interpolate/original