(self, x, y)
Convert physical to logical coordinates.
Convert physical to logical coordinates.
Convert physical to logical coordinates .
def _get_window_logical(self, x, y):
        """Convert physical to logical coordinates."""
        x, y = float(x), float(y)
        if self._window:
            scalex, scaley, offsetx, offsety = self._window
            return (x - offsetx) / scalex,  (y - offsety) / scaley
        else:
            return x, y
def _get_window_logical ( self , x , y ) : x , y = float ( x ) , float ( y ) if self . _window : scalex , scaley , offsetx , offsety = self . _window return ( x - offsetx ) / scalex , ( y - offsety ) / scaley else : return x , y