(self, parameter)
Zoom.
Zoom.
Zoom .
def zoom(self, parameter):
        """Zoom."""
        dx, px, dy, py = parameter
        if (dx >= 0) and (dy >= 0):
            dx, dy = (max(dx, dy),) * 2
        elif (dx <= 0) and (dy <= 0):
            dx, dy = (min(dx, dy),) * 2
        else:
            dx = dy = 0
        self.sx *= np.exp(dx)
        self.sy *= np.exp(dy)
        self.sxl = self.sx
        self.syl = self.sy
def zoom ( self , parameter ) : dx , px , dy , py = parameter if ( dx >= 0 ) and ( dy >= 0 ) : dx , dy = ( max ( dx , dy ) , ) * 2 elif ( dx <= 0 ) and ( dy <= 0 ) : dx , dy = ( min ( dx , dy ) , ) * 2 else : dx = dy = 0 self . sx *= np . exp ( dx ) self . sy *= np . exp ( dy ) self . sxl = self . sx self . syl = self . sy