def METHOD_NAME(self): # X dimension
    if self.data is not None and self.xpoints:
        self.Warning.wrong_div.clear()
        ytemp = len(self.data.X)//self.xpoints
        if len(self.data.X) % self.xpoints == 0:
            self.ypoints = ytemp
            self.commit.deferred()
        else:
            self.Warning.wrong_div(len(self.data.X))