class_docstr: Refer to TraceFactory.create_annotated_heatmap() for docstring
code: def __init__(
      self,
      z,
      x,
      y,
      annotation_text,
      colorscale,
      font_colors,
      reversescale,
      **kwargs,
  ):
      self.z = z
      if x:
          self.x = x
      else:
          self.x = range(len(z[0]))
      if y:
          self.y = y
      else:
          self.y = range(len(z))
      if annotation_text is not None:
          self.annotation_text = annotation_text
      else:
          self.annotation_text = self.z
      self.colorscale = colorscale
      self.reversescale = reversescale
      self.font_colors = font_colors
  
      if np and isinstance(self.z, np.ndarray):
          self.zmin = np.amin(self.z)
          self.zmax = np.amax(self.z)
      else:
          self.zmin = min([v for row in self.z for v in row])
          self.zmax = max([v for row in self.z for v in row])
  
      if kwargs.get("zmin", None) is not None:
          self.zmin = kwargs["zmin"]
      if kwargs.get("zmax", None) is not None:
          self.zmax = kwargs["zmax"]
  
      self.zmid = (self.zmax + self.zmin) / 2
  
      if kwargs.get("zmid", None) is not None:
          self.zmid = kwargs["zmid"]
  
file_path: catboost/contrib/python/plotly/py3/plotly/figure_factory/_annotated_heatmap.py
imports: import plotly.colors
  from plotly import exceptions, optional_imports
  from plotly.figure_factory import utils
  from plotly.graph_objs import graph_objs
  from plotly.validators.heatmap import ColorscaleValidator
label_desc: Use image node_id 1 to create a new _AnnotatedHeatmap object from inherited base classes: object with example: obj = _AnnotatedHeatmap(z, x, y, annotation_text, colorscale, font_colors, reversescale)