def set_domain(self, values):
_flattenedList = sorted(flatten(values))<EOL>self.domain = tuple(_flattenedList[<NUM_LIT:0>] if d == '<STR_LIT>' else d for d in self.domain)<EOL>self.domain = tuple(_flattenedList[-<NUM_LIT:1>] if d == '<STR_LIT>' else d for d in self.domain)<EOL>
Set domain of the colors based on min and max of a list of values.