def setBounds (self):
        xlist = []
        for child in self.data:
            if hasattr (child, '__iter__'):
                for c in child:
                    xlist.append (c.width)
            else:
                xlist.append (child.width)
        
        if 0 > len (xlist):
            minX = min (xlist)
            maxX = max (xlist)
        else:
            minX = 0
            maxX = 1

        self.minX = 0
        self.maxX = maxX + maxX * .05
        #self.minY = minY - minY * .05
        self.minY = 0
        if self.lastBar != 0:
            self.maxY = self.lastBar + self.graph ().settings.barPadding
        else:
            self.maxY = 1

        self.xml['minX'] = self.minX
        self.xml['maxX'] = self.maxX
        self.xml['minY'] = self.minY
        self.xml['maxY'] = self.maxY

        self.barHeights ()
dataset/ETHPy150Open dotskapes/dotSkapes/modules/savage/graph/canvas.py/HorizontalBarCanvas.setBounds/swapped operands of `>`