def createXAxisSpace (self):
        if self.settings.horizontal:
            UnifiedGraph.createXAxisSpace (self)
        else:
            h = self.settings.xAxisTextHeight
            width = []
            for child in self.canvas.data:
                if child.xml.has_key ('data') and not child.xml['data'] is None :
                    w = Text.textWidth (child.xml['data'], h)
                    width.append (w)
            if len (width) > 0:
                maxWidth = max (width)
            else:
                maxWidth = 0
            delta = self.settings.xAxisSpace + maxWidth
            self.canvas.move (0, delta)
            self.canvas.changeSize (0, -delta)
dataset/ETHPy150Open dotskapes/dotSkapes/modules/savage/graph/__init__.py/BarGraph.createXAxisSpace/original