arte/types/domainxy.py
def restrict(self, x, y):
        '''(x,y) = new coordinates restricted to be inside this domain'''

        assert_unit_is_equivalent(x, ref=self._xcoord)
        assert_unit_is_equivalent(y, ref=self._ycoord)

        x = max(x, self._xcoord.min())
        y = max(y, self._ycoord.min())
        x = min(x, self._xcoord.max())
        y = min(y, self._ycoord.max())

        return x, y
(x,y) = new coordinates restricted to be inside this domain
(x,y) = new coordinates restricted to be inside this domain
( x y ) = new coordinates restricted to be inside this domain
def restrict(self, x, y):
        assert_unit_is_equivalent(x, ref=self._xcoord)
        assert_unit_is_equivalent(y, ref=self._ycoord)
        x = max(x, self._xcoord.min())
        y = max(y, self._ycoord.min())
        x = min(x, self._xcoord.max())
        y = min(y, self._ycoord.max())
        return x, y
def restrict ( self , x , y ) : assert_unit_is_equivalent ( x , ref = self . _xcoord ) assert_unit_is_equivalent ( y , ref = self . _ycoord ) x = max ( x , self . _xcoord . min ( ) ) y = max ( y , self . _ycoord . min ( ) ) x = min ( x , self . _xcoord . max ( ) ) y = min ( y , self . _ycoord . max ( ) ) return x , y
(x,y) = new coordinates restricted to be inside this domain
( x y ) = new coordinates restricted to be inside this domain
'''(x,y) = new coordinates restricted to be inside this domain'''
self
x
y