docstr: Construct a new Frame object
  
  Parameters
  ----------
  arg
      dict of properties compatible with this constructor or
      an instance of :class:`plotly.graph_objs.Frame`
  baseframe
      The name of the frame into which this frame's
      properties are merged before applying. This is used to
      unify properties and avoid needing to specify the same
      values for the same properties in multiple frames.
  data
      A list of traces this frame modifies. The format is
      identical to the normal trace definition.
  group
      An identifier that specifies the group to which the
      frame belongs, used by animate to select a subset of
      frames.
  layout
      Layout properties which this frame modifies. The format
      is identical to the normal layout definition.
  name
      A label by which to identify the frame
  traces
      A list of trace indices that identify the respective
      traces in the data attribute
  
  Returns
  -------
  Frame
docstr_tok: ["Construct","a","new","Frame","object","Parameters","--","--","--","--","--","arg","dict","of","properties","compatible","with","this","constructor","or","an","instance","of",":","class",":","`","plotly.graph_objs.Frame","`","baseframe","The","name","of","the","frame","into","which","this","frame's","properties","are","merged","before","applying",".","This","is","used","to","unify","properties","and","avoid","needing","to","specify","the","same","values","for","the","same","properties","in","multiple","frames",".","data","A","list","of","traces","this","frame","modifies",".","The","format","is","identical","to","the","normal","trace","definition",".","group","An","identifier","that","specifies","the","group","to","which","the","frame","belongs",",","used","by","animate","to","select","a","subset","of","frames",".","layout","Layout","properties","which","this","frame","modifies",".","The","format","is","identical","to","the","normal","layout","definition",".","name","A","label","by","which","to","identify","the","frame","traces","A","list","of","trace","indices","that","identify","the","respective","traces","in","the","data","attribute","Returns","--","--","--","-","Frame"]
code: def __init__(
      self,
      arg=None,
      baseframe=None,
      data=None,
      group=None,
      layout=None,
      name=None,
      traces=None,
      **kwargs,
  ):
      """
      Construct a new Frame object
  
      Parameters
      ----------
      arg
          dict of properties compatible with this constructor or
          an instance of :class:`plotly.graph_objs.Frame`
      baseframe
          The name of the frame into which this frame's
          properties are merged before applying. This is used to
          unify properties and avoid needing to specify the same
          values for the same properties in multiple frames.
      data
          A list of traces this frame modifies. The format is
          identical to the normal trace definition.
      group
          An identifier that specifies the group to which the
          frame belongs, used by animate to select a subset of
          frames.
      layout
          Layout properties which this frame modifies. The format
          is identical to the normal layout definition.
      name
          A label by which to identify the frame
      traces
          A list of trace indices that identify the respective
          traces in the data attribute
  
      Returns
      -------
      Frame
      """
      super(Frame, self).__init__("frames")
  
      if "_parent" in kwargs:
          self._parent = kwargs["_parent"]
          return
  
      # Validate arg
      # ------------
      if arg is None:
          arg = {}
      elif isinstance(arg, self.__class__):
          arg = arg.to_plotly_json()
      elif isinstance(arg, dict):
          arg = _copy.copy(arg)
      else:
          raise ValueError(
              """\
  The first argument to the plotly.graph_objs.Frame
  constructor must be a dict or
  an instance of :class:`plotly.graph_objs.Frame`"""
          )
  
      # Handle skip_invalid
      # -------------------
      self._skip_invalid = kwargs.pop("skip_invalid", False)
      self._validate = kwargs.pop("_validate", True)
  
      # Populate data dict with properties
      # ----------------------------------
      _v = arg.pop("baseframe", None)
      _v = baseframe if baseframe is not None else _v
      if _v is not None:
          self["baseframe"] = _v
      _v = arg.pop("data", None)
      _v = data if data is not None else _v
      if _v is not None:
          self["data"] = _v
      _v = arg.pop("group", None)
      _v = group if group is not None else _v
      if _v is not None:
          self["group"] = _v
      _v = arg.pop("layout", None)
      _v = layout if layout is not None else _v
      if _v is not None:
          self["layout"] = _v
      _v = arg.pop("name", None)
      _v = name if name is not None else _v
      if _v is not None:
          self["name"] = _v
      _v = arg.pop("traces", None)
      _v = traces if traces is not None else _v
      if _v is not None:
          self["traces"] = _v
  
      # Process unknown kwargs
      # ----------------------
      self._process_kwargs(**dict(arg, **kwargs))
  
      # Reset skip_invalid
      # ------------------
      self._skip_invalid = False
  
file_path: plotly.py/packages/python/plotly/plotly/graph_objs/_frame.py
imports: from plotly.basedatatypes import BaseFrameHierarchyType
  import copy
label_desc: Use image node_id 14 to create a new Frame object from inherited base classes: _BaseFrameHierarchyType with example: obj = Frame(arg, baseframe, data, group, layout, name, traces)