docstr: Construct a new Tiling object
  
  Parameters
  ----------
  arg
      dict of properties compatible with this constructor or
      an instance of
      :class:`plotly.graph_objs.treemap.Tiling`
  flip
      Determines if the positions obtained from solver are
      flipped on each axis.
  packing
      Determines d3 treemap solver. For more info please
      refer to https://github.com/d3/d3-hierarchy#treemap-
      tiling
  pad
      Sets the inner padding (in px).
  squarifyratio
      When using "squarify" `packing` algorithm, according to
      https://github.com/d3/d3-
      hierarchy/blob/v3.1.1/README.md#squarify_ratio this
      option specifies the desired aspect ratio of the
      generated rectangles. The ratio must be specified as a
      number greater than or equal to one. Note that the
      orientation of the generated rectangles (tall or wide)
      is not implied by the ratio; for example, a ratio of
      two will attempt to produce a mixture of rectangles
      whose width:height ratio is either 2:1 or 1:2. When
      using "squarify", unlike d3 which uses the Golden Ratio
      i.e. 1.618034, Plotly applies 1 to increase squares in
      treemap layouts.
  
  Returns
  -------
  Tiling
docstr_tok: ["Construct","a","new","Tiling","object","Parameters","--","--","--","--","--","arg","dict","of","properties","compatible","with","this","constructor","or","an","instance","of",":","class",":","`","plotly.graph_objs.treemap.Tiling","`","flip","Determines","if","the","positions","obtained","from","solver","are","flipped","on","each","axis",".","packing","Determines","d3","treemap","solver",".","For","more","info","please","refer","to","https",":","\/\/github.com\/d3\/d3-hierarchy","#","treemap-","tiling","pad","Sets","the","inner","padding","(","in","px",")",".","squarifyratio","When","using","``","squarify","''","`","packing","`","algorithm",",","according","to","https",":","\/\/github.com\/d3\/d3-","hierarchy\/blob\/v3.1.1\/README.md","#","squarify_ratio","this","option","specifies","the","desired","aspect","ratio","of","the","generated","rectangles",".","The","ratio","must","be","specified","as","a","number","greater","than","or","equal","to","one",".","Note","that","the","orientation","of","the","generated","rectangles","(","tall","or","wide",")","is","not","implied","by","the","ratio",";","for","example",",","a","ratio","of","two","will","attempt","to","produce","a","mixture","of","rectangles","whose","width",":","height","ratio","is","either","2:1","or","1:2",".","When","using","``","squarify","''",",","unlike","d3","which","uses","the","Golden","Ratio","i.e",".","1.618034",",","Plotly","applies","1","to","increase","squares","in","treemap","layouts",".","Returns","--","--","--","-","Tiling"]
code: def __init__(
      self,
      arg=None,
      flip=None,
      packing=None,
      pad=None,
      squarifyratio=None,
      **kwargs,
  ):
      """
      Construct a new Tiling object
  
      Parameters
      ----------
      arg
          dict of properties compatible with this constructor or
          an instance of
          :class:`plotly.graph_objs.treemap.Tiling`
      flip
          Determines if the positions obtained from solver are
          flipped on each axis.
      packing
          Determines d3 treemap solver. For more info please
          refer to https://github.com/d3/d3-hierarchy#treemap-
          tiling
      pad
          Sets the inner padding (in px).
      squarifyratio
          When using "squarify" `packing` algorithm, according to
          https://github.com/d3/d3-
          hierarchy/blob/v3.1.1/README.md#squarify_ratio this
          option specifies the desired aspect ratio of the
          generated rectangles. The ratio must be specified as a
          number greater than or equal to one. Note that the
          orientation of the generated rectangles (tall or wide)
          is not implied by the ratio; for example, a ratio of
          two will attempt to produce a mixture of rectangles
          whose width:height ratio is either 2:1 or 1:2. When
          using "squarify", unlike d3 which uses the Golden Ratio
          i.e. 1.618034, Plotly applies 1 to increase squares in
          treemap layouts.
  
      Returns
      -------
      Tiling
      """
      super(Tiling, self).__init__("tiling")
  
      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.treemap.Tiling
  constructor must be a dict or
  an instance of :class:`plotly.graph_objs.treemap.Tiling`"""
          )
  
      # 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("flip", None)
      _v = flip if flip is not None else _v
      if _v is not None:
          self["flip"] = _v
      _v = arg.pop("packing", None)
      _v = packing if packing is not None else _v
      if _v is not None:
          self["packing"] = _v
      _v = arg.pop("pad", None)
      _v = pad if pad is not None else _v
      if _v is not None:
          self["pad"] = _v
      _v = arg.pop("squarifyratio", None)
      _v = squarifyratio if squarifyratio is not None else _v
      if _v is not None:
          self["squarifyratio"] = _v
  
      # Process unknown kwargs
      # ----------------------
      self._process_kwargs(**dict(arg, **kwargs))
  
      # Reset skip_invalid
      # ------------------
      self._skip_invalid = False
  
file_path: catboost/contrib/python/plotly/py3/plotly/graph_objs/treemap/_tiling.py
imports: from plotly.basedatatypes import BaseTraceHierarchyType
  import copy
label_desc: Use image node_id 10 to create a new Tiling object from inherited base classes: _BaseTraceHierarchyType with example: obj = Tiling(arg, flip, packing, pad, squarifyratio)