def set_coordinates(self, x_range, y_range): levels = self.get_levels() y_levels = self.get_y_levels() x_levels = self.get_x_levels() coordinates = HierarchyHelper.calc_y_coordinates(y_range=y_range, levels=levels, y_levels=y_levels) coordinates = HierarchyHelper.calc_x_coordinates(x_range=x_range, levels=levels, x_levels=x_levels, coordinates=coordinates) self.__coordinates = coordinates
def set_coordinates(self, x_range, y_range, force): coordinates = HierarchyHelper.calc_y_coordinates( y_range=y_range, levels=self.__levels, y_levels=self.__y_levels, force=force) coordinates = HierarchyHelper.calc_x_coordinates( x_range=x_range, levels=self.__levels, x_levels=self.__x_levels, coordinates=coordinates) self.__coordinates = coordinates