(self, *args, **kwds)
Translates the layout.

        The translation vector can be provided either through the C{v} keyword
        argument or through plain unnamed arguments. If unnamed arguments are
        used, the vector can be supplied as a single list (or tuple) or just as
        a series of arguments. In all cases, the translation vector must have
        the same number of dimensions as the layout.

        @keyword v: the translation vector
Translates the layout.
Translates the layout .
def translate(self, *args, **kwds):
        """Translates the layout.

        The translation vector can be provided either through the C{v} keyword
        argument or through plain unnamed arguments. If unnamed arguments are
        used, the vector can be supplied as a single list (or tuple) or just as
        a series of arguments. In all cases, the translation vector must have
        the same number of dimensions as the layout.

        @keyword v: the translation vector
        """
        v = kwds.get("v") or args
        if len(v) == 0:
            raise ValueError("translation vector must be given")
        elif len(v) == 1 and type(v[0]) != int and type(v[0]) != float:
            v = v[0]
        if len(v) != self._dim:
            raise ValueError("translation vector must have %d dimensions" % self._dim)

        for idx, row in enumerate(self._coords):
            self._coords[idx] = [row[d] + v[d] for d in range(self._dim)]
def translate ( self , * args , * * kwds ) : v = kwds . get ( "v" ) or args if len ( v ) == 0 : raise ValueError ( "translation vector must be given" ) elif len ( v ) == 1 and type ( v [ 0 ] ) != int and type ( v [ 0 ] ) != float : v = v [ 0 ] if len ( v ) != self . _dim : raise ValueError ( "translation vector must have %d dimensions" % self . _dim ) for idx , row in enumerate ( self . _coords ) : self . _coords [ idx ] = [ row [ d ] + v [ d ] for d in range ( self . _dim ) ]