def setBounds (self):
        ylist = []
        for child in self.data:
            ylist.append (child.height)
        
        if len (ylist):
            minY = min (ylist)
            maxY = max (ylist)

            rangeY = maxY - minY
            
            if rangeY:
                self.minY = rangeY * .05 - minY
                #self.minY = 0
                self.maxY = maxY + rangeY * .05
            else:
                self.minY = minY - 1.0
                #self.minY = 0
                self.maxY = maxY + 1.0

            if self.lastBar:
                self.minX = 0
                self.maxX = self.lastBar
            
            else:
                self.minX = 0
                self.maxX = 1

        else:

            self.minX = 0.0
            self.maxX = 1.0
            self.minY = 0.0
            self.maxY = 1.0


        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/BarCanvas.setBounds/swapped operands of `-`