docstr: Construct a new Camera object
  
  Parameters
  ----------
  arg
      dict of properties compatible with this constructor or
      an instance of
      :class:`plotly.graph_objs.layout.scene.Camera`
  center
      Sets the (x,y,z) components of the 'center' camera
      vector This vector determines the translation (x,y,z)
      space about the center of this scene. By default, there
      is no such translation.
  eye
      Sets the (x,y,z) components of the 'eye' camera vector.
      This vector determines the view point about the origin
      of this scene.
  projection
      :class:`plotly.graph_objects.layout.scene.camera.Projec
      tion` instance or dict with compatible properties
  up
      Sets the (x,y,z) components of the 'up' camera vector.
      This vector determines the up direction of this scene
      with respect to the page. The default is *{x: 0, y: 0,
      z: 1}* which means that the z axis points up.
  
  Returns
  -------
  Camera
docstr_tok: ["Construct","a","new","Camera","object","Parameters","--","--","--","--","--","arg","dict","of","properties","compatible","with","this","constructor","or","an","instance","of",":","class",":","`","plotly.graph_objs.layout.scene.Camera","`","center","Sets","the","(","x",",","y",",","z",")","components","of","the","'center","'","camera","vector","This","vector","determines","the","translation","(","x",",","y",",","z",")","space","about","the","center","of","this","scene",".","By","default",",","there","is","no","such","translation",".","eye","Sets","the","(","x",",","y",",","z",")","components","of","the","'eye","'","camera","vector",".","This","vector","determines","the","view","point","about","the","origin","of","this","scene",".","projection",":","class",":","`","plotly.graph_objects.layout.scene.camera.Projec","tion","`","instance","or","dict","with","compatible","properties","up","Sets","the","(","x",",","y",",","z",")","components","of","the","'up","'","camera","vector",".","This","vector","determines","the","up","direction","of","this","scene","with","respect","to","the","page",".","The","default","is","*","{","x",":","0",",","y",":","0",",","z",":","1","}","*","which","means","that","the","z","axis","points","up",".","Returns","--","--","--","-","Camera"]
code: def __init__(
      self,
      arg=None,
      center=None,
      eye=None,
      projection=None,
      up=None,
      **kwargs,
  ):
      """
      Construct a new Camera object
  
      Parameters
      ----------
      arg
          dict of properties compatible with this constructor or
          an instance of
          :class:`plotly.graph_objs.layout.scene.Camera`
      center
          Sets the (x,y,z) components of the 'center' camera
          vector This vector determines the translation (x,y,z)
          space about the center of this scene. By default, there
          is no such translation.
      eye
          Sets the (x,y,z) components of the 'eye' camera vector.
          This vector determines the view point about the origin
          of this scene.
      projection
          :class:`plotly.graph_objects.layout.scene.camera.Projec
          tion` instance or dict with compatible properties
      up
          Sets the (x,y,z) components of the 'up' camera vector.
          This vector determines the up direction of this scene
          with respect to the page. The default is *{x: 0, y: 0,
          z: 1}* which means that the z axis points up.
  
      Returns
      -------
      Camera
      """
      super(Camera, self).__init__("camera")
  
      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.layout.scene.Camera
  constructor must be a dict or
  an instance of :class:`plotly.graph_objs.layout.scene.Camera`"""
          )
  
      # 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("center", None)
      _v = center if center is not None else _v
      if _v is not None:
          self["center"] = _v
      _v = arg.pop("eye", None)
      _v = eye if eye is not None else _v
      if _v is not None:
          self["eye"] = _v
      _v = arg.pop("projection", None)
      _v = projection if projection is not None else _v
      if _v is not None:
          self["projection"] = _v
      _v = arg.pop("up", None)
      _v = up if up is not None else _v
      if _v is not None:
          self["up"] = _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/layout/scene/_camera.py
imports: from plotly.basedatatypes import BaseLayoutHierarchyType
  import copy
label_desc: Use image node_id 10 to create a new Camera object from inherited base classes: _BaseLayoutHierarchyType with example: obj = Camera(arg, center, eye, projection, up)