def positionLabels (self):
        if self.canvas:
            topY = self.settings.height - (self.canvas.height + self.canvas.y)
            midX = self.canvas.x + (self.canvas.width) / 2.0
            midY = topY + (self.canvas.height) / 2.0 
        else:
            midX = self.settings.width / 2.0
            midY = self.settings.height % 2.0

        # Title Position
        self.title.move (self.settings.width / 2.0, self.settings.topMargin)    
        #self.title.move (midX, self.settings.topMargin)

        # Y Label Position
        self.ylabelText.move (-midY, self.settings.leftMargin)
    
        # X Label Position
        if self.leg:
            modX = self.leg.height + 30
        else:
            modX = 0
        self.xlabel.move (midX, self.settings.height -modX - self.settings.bottomMargin) 
        #self.xlabel.move (midX, self.settings.height - self.canvas.y + self.xlabel.textHeight + 10)

        # Y2 Label Position
        self.y2labelText.move (self.settings.width + midY, self.settings.rightMargin)
dataset/ETHPy150Open dotskapes/dotSkapes/modules/savage/graph/base.py/BaseGraph.positionLabels/operator `/` -> `%`