class_docstr: Represents the layout of a graph.
  
  A layout is practically a list of coordinates in an n-dimensional
  space. This class is generic in the sense that it can store coordinates
  in any n-dimensional space.
  
  Layout objects are not associated directly with a graph. This is deliberate:
  there were times when I worked with almost identical copies of the same
  graph, the only difference was that they had different colors assigned to
  the vertices. It was particularly convenient for me to use the same layout
  for all of them, especially when I made figures for a paper. However,
  C{igraph} will of course refuse to draw a graph with a layout that has
  less coordinates than the node count of the graph.
  
  Layouts behave exactly like lists when they are accessed using the item
  index operator (C{[...]}). They can even be iterated through. Items
  returned by the index operator are only copies of the coordinates,
  but the stored coordinates can be modified by directly assigning to
  an index.
  
      >>> layout = Layout([(0, 1), (0, 2)])
      >>> coords = layout[1]
      >>> print(coords)
      [0, 2]
      >>> coords = (0, 3)
      >>> print(layout[1])
      [0, 2]
      >>> layout[1] = coords
      >>> print(layout[1])
      [0, 3]
docstr: 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
docstr_tok: ["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"]
code: 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 not isinstance(v[0], (int, 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)]
  
imports: from math import sin, cos, pi
  from igraph._igraph import GraphBase
  from igraph.drawing.utils import BoundingBox
  from igraph.statistics import RunningMean
label_desc: Use image node_id 14 for calling the Layout obj's underlying member method code with example usage: obj.translate() without return types