docstr: Construct a new Contours object
  
  Parameters
  ----------
  arg
      dict of properties compatible with this constructor or
      an instance of
      :class:`plotly.graph_objs.contourcarpet.Contours`
  coloring
      Determines the coloring method showing the contour
      values. If "fill", coloring is done evenly between each
      contour level If "lines", coloring is done on the
      contour lines. If "none", no coloring is applied on
      this trace.
  end
      Sets the end contour level value. Must be more than
      `contours.start`
  labelfont
      Sets the font used for labeling the contour levels. The
      default color comes from the lines, if shown. The
      default family and size come from `layout.font`.
  labelformat
      Sets the contour label formatting rule using d3
      formatting mini-language which is very similar to
      Python, see: https://github.com/d3/d3-3.x-api-
      reference/blob/master/Formatting.md#d3_format
  operation
      Sets the constraint operation. "=" keeps regions equal
      to `value` "<" and "<=" keep regions less than `value`
      ">" and ">=" keep regions greater than `value` "[]",
      "()", "[)", and "(]" keep regions inside `value[0]` to
      `value[1]` "][", ")(", "](", ")[" keep regions outside
      `value[0]` to value[1]` Open vs. closed intervals make
      no difference to constraint display, but all versions
      are allowed for consistency with filter transforms.
  showlabels
      Determines whether to label the contour lines with
      their values.
  showlines
      Determines whether or not the contour lines are drawn.
      Has an effect only if `contours.coloring` is set to
      "fill".
  size
      Sets the step between each contour level. Must be
      positive.
  start
      Sets the starting contour level value. Must be less
      than `contours.end`
  type
      If `levels`, the data is represented as a contour plot
      with multiple levels displayed. If `constraint`, the
      data is represented as constraints with the invalid
      region shaded as specified by the `operation` and
      `value` parameters.
  value
      Sets the value or values of the constraint boundary.
      When `operation` is set to one of the comparison values
      (=,<,>=,>,<=) "value" is expected to be a number. When
      `operation` is set to one of the interval values
      ([],(),[),(],][,)(,](,)[) "value" is expected to be an
      array of two numbers where the first is the lower bound
      and the second is the upper bound.
  
  Returns
  -------
  Contours
docstr_tok: ["Construct","a","new","Contours","object","Parameters","--","--","--","--","--","arg","dict","of","properties","compatible","with","this","constructor","or","an","instance","of",":","class",":","`","plotly.graph_objs.contourcarpet.Contours","`","coloring","Determines","the","coloring","method","showing","the","contour","values",".","If","``","fill","''",",","coloring","is","done","evenly","between","each","contour","level","If","``","lines","''",",","coloring","is","done","on","the","contour","lines",".","If","``","none","''",",","no","coloring","is","applied","on","this","trace",".","end","Sets","the","end","contour","level","value",".","Must","be","more","than","`","contours.start","`","labelfont","Sets","the","font","used","for","labeling","the","contour","levels",".","The","default","color","comes","from","the","lines",",","if","shown",".","The","default","family","and","size","come","from","`","layout.font","`",".","labelformat","Sets","the","contour","label","formatting","rule","using","d3","formatting","mini-language","which","is","very","similar","to","Python",",","see",":","https",":","\/\/github.com\/d3\/d3-3.x-api-","reference\/blob\/master\/Formatting.md","#","d3_format","operation","Sets","the","constraint","operation",".","``","=","''","keeps","regions","equal","to","`","value","`","``","<","``","and","``","<","=","''","keep","regions","less","than","`","value","`","``",">","''","and","``",">","=","''","keep","regions","greater","than","`","value","`","``","[","]","''",",","``","(",")","''",",","``","[",")","''",",","and","``","(","]","''","keep","regions","inside","`","value","[","0","]","`","to","`","value","[","1","]","`","``","]","[","``",",","``",")","(","``",",","``","]","(","``",",","``",")","[","``","keep","regions","outside","`","value","[","0","]","`","to","value","[","1","]","`","Open","vs.","closed","intervals","make","no","difference","to","constraint","display",",","but","all","versions","are","allowed","for","consistency","with","filter","transforms",".","showlabels","Determines","whether","to","label","the","contour","lines","with","their","values",".","showlines","Determines","whether","or","not","the","contour","lines","are","drawn",".","Has","an","effect","only","if","`","contours.coloring","`","is","set","to","``","fill","''",".","size","Sets","the","step","between","each","contour","level",".","Must","be","positive",".","start","Sets","the","starting","contour","level","value",".","Must","be","less","than","`","contours.end","`","type","If","`","levels","`",",","the","data","is","represented","as","a","contour","plot","with","multiple","levels","displayed",".","If","`","constraint","`",",","the","data","is","represented","as","constraints","with","the","invalid","region","shaded","as","specified","by","the","`","operation","`","and","`","value","`","parameters",".","value","Sets","the","value","or","values","of","the","constraint","boundary",".","When","`","operation","`","is","set","to","one","of","the","comparison","values","(","=",",","<",",",">","=",",",">",",","<","=",")","``","value","''","is","expected","to","be","a","number",".","When","`","operation","`","is","set","to","one","of","the","interval","values","(","[","]",",","(",")",",","[",")",",","(","]",",","]","[",",",")","(",",","]","(",",",")","[",")","``","value","''","is","expected","to","be","an","array","of","two","numbers","where","the","first","is","the","lower","bound","and","the","second","is","the","upper","bound",".","Returns","--","--","--","-","Contours"]
code: def __init__(
      self,
      arg=None,
      coloring=None,
      end=None,
      labelfont=None,
      labelformat=None,
      operation=None,
      showlabels=None,
      showlines=None,
      size=None,
      start=None,
      type=None,
      value=None,
      **kwargs,
  ):
      """
      Construct a new Contours object
  
      Parameters
      ----------
      arg
          dict of properties compatible with this constructor or
          an instance of
          :class:`plotly.graph_objs.contourcarpet.Contours`
      coloring
          Determines the coloring method showing the contour
          values. If "fill", coloring is done evenly between each
          contour level If "lines", coloring is done on the
          contour lines. If "none", no coloring is applied on
          this trace.
      end
          Sets the end contour level value. Must be more than
          `contours.start`
      labelfont
          Sets the font used for labeling the contour levels. The
          default color comes from the lines, if shown. The
          default family and size come from `layout.font`.
      labelformat
          Sets the contour label formatting rule using d3
          formatting mini-language which is very similar to
          Python, see: https://github.com/d3/d3-3.x-api-
          reference/blob/master/Formatting.md#d3_format
      operation
          Sets the constraint operation. "=" keeps regions equal
          to `value` "<" and "<=" keep regions less than `value`
          ">" and ">=" keep regions greater than `value` "[]",
          "()", "[)", and "(]" keep regions inside `value[0]` to
          `value[1]` "][", ")(", "](", ")[" keep regions outside
          `value[0]` to value[1]` Open vs. closed intervals make
          no difference to constraint display, but all versions
          are allowed for consistency with filter transforms.
      showlabels
          Determines whether to label the contour lines with
          their values.
      showlines
          Determines whether or not the contour lines are drawn.
          Has an effect only if `contours.coloring` is set to
          "fill".
      size
          Sets the step between each contour level. Must be
          positive.
      start
          Sets the starting contour level value. Must be less
          than `contours.end`
      type
          If `levels`, the data is represented as a contour plot
          with multiple levels displayed. If `constraint`, the
          data is represented as constraints with the invalid
          region shaded as specified by the `operation` and
          `value` parameters.
      value
          Sets the value or values of the constraint boundary.
          When `operation` is set to one of the comparison values
          (=,<,>=,>,<=) "value" is expected to be a number. When
          `operation` is set to one of the interval values
          ([],(),[),(],][,)(,](,)[) "value" is expected to be an
          array of two numbers where the first is the lower bound
          and the second is the upper bound.
  
      Returns
      -------
      Contours
      """
      super(Contours, self).__init__("contours")
  
      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.contourcarpet.Contours 
  constructor must be a dict or 
  an instance of :class:`plotly.graph_objs.contourcarpet.Contours`"""
          )
  
      # 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("coloring", None)
      _v = coloring if coloring is not None else _v
      if _v is not None:
          self["coloring"] = _v
      _v = arg.pop("end", None)
      _v = end if end is not None else _v
      if _v is not None:
          self["end"] = _v
      _v = arg.pop("labelfont", None)
      _v = labelfont if labelfont is not None else _v
      if _v is not None:
          self["labelfont"] = _v
      _v = arg.pop("labelformat", None)
      _v = labelformat if labelformat is not None else _v
      if _v is not None:
          self["labelformat"] = _v
      _v = arg.pop("operation", None)
      _v = operation if operation is not None else _v
      if _v is not None:
          self["operation"] = _v
      _v = arg.pop("showlabels", None)
      _v = showlabels if showlabels is not None else _v
      if _v is not None:
          self["showlabels"] = _v
      _v = arg.pop("showlines", None)
      _v = showlines if showlines is not None else _v
      if _v is not None:
          self["showlines"] = _v
      _v = arg.pop("size", None)
      _v = size if size is not None else _v
      if _v is not None:
          self["size"] = _v
      _v = arg.pop("start", None)
      _v = start if start is not None else _v
      if _v is not None:
          self["start"] = _v
      _v = arg.pop("type", None)
      _v = type if type is not None else _v
      if _v is not None:
          self["type"] = _v
      _v = arg.pop("value", None)
      _v = value if value is not None else _v
      if _v is not None:
          self["value"] = _v
  
      # Process unknown kwargs
      # ----------------------
      self._process_kwargs(**dict(arg, **kwargs))
  
      # Reset skip_invalid
      # ------------------
      self._skip_invalid = False
  
imports: from plotly.basedatatypes import BaseTraceHierarchyType
  import copy
label_desc: Use image node_id 24 to create a new Contours object from inherited base classes: _BaseTraceHierarchyType with example: obj = Contours(arg, coloring, end, labelfont, labelformat, operation, showlabels, showlines, size, start, type, value)