def swap ( self ) : self . xmin , self . ymin = self . ymin , self . xmin self . xmax , self . ymax = self . ymax , self . xmax
bounding box to capture an object inpython
Return the box ( for horizontal graphs )
def swap(self):
        """Return the box (for horizontal graphs)"""
        self.xmin, self.ymin = self.ymin, self.xmin
        self.xmax, self.ymax = self.ymax, self.xmax