def METHOD_NAME(self): # Y dimension
    if self.data is not None and self.ypoints:
        self.Warning.wrong_div.clear()
        xtemp = len(self.data.X)//self.ypoints
        if len(self.data.X) % self.ypoints == 0:
            self.xpoints = xtemp
            self.commit.deferred()
        else:
            self.Warning.wrong_div(len(self.data.X))
            # it would be nice to turn the bkg red at this point