class_docstr: Heatmap plot.
docstr: Args:
      data (pd.DataFrame): Matrix with the coefficient values.
      label_xaxis (str): X-axis label, default ''.
      label_yaxis (str): X-axis label,  default ''.
      xrotation (int): Rotation degree to apply to the x axis, default 0.
      show_labels (bool): Whether to show the coefficient on the heatmap, default True.
      labels_format (str): Format to apply to the labels, default '{0:.2f}'.
      cmap (str): Color map or palette, default 'PuBu'.
      colorbar (bool): Whether to show the color bar, default True.
      colorbar_position (str): Where to position the colorbar, e.g. 'left', 'right', etc.
      colorbar_limit (Tuple[float, float]): Min and max colorbar range, default (-1, 1).
docstr_tok: ["Args",":","data","(","pd.DataFrame",")",":","Matrix","with","the","coefficient","values",".","label_xaxis","(","str",")",":","X-axis","label",",","default","``",".","label_yaxis","(","str",")",":","X-axis","label",",","default","``",".","xrotation","(","int",")",":","Rotation","degree","to","apply","to","the","x","axis",",","default","0.","show_labels","(","bool",")",":","Whether","to","show","the","coefficient","on","the","heatmap",",","default","True",".","labels_format","(","str",")",":","Format","to","apply","to","the","labels",",","default","'","{","0",":",".2f","}","'",".","cmap","(","str",")",":","Color","map","or","palette",",","default","'PuBu","'",".","colorbar","(","bool",")",":","Whether","to","show","the","color","bar",",","default","True",".","colorbar_position","(","str",")",":","Where","to","position","the","colorbar",",","e.g",".","'left","'",",","'right","'",",","etc",".","colorbar_limit","(","Tuple","[","float",",","float","]",")",":","Min","and","max","colorbar","range",",","default","(","-1",",","1",")","."]
code: def __init__(
      self,
      data: pd.DataFrame,
      label_xaxis: str = "",
      label_yaxis: str = "",
      xrotation: int = 0,
      show_labels: bool = True,
      labels_format: str = "{:.2f}",
      cmap: Union[str, List[str]] = "PuBu",
      colorbar: bool = True,
      colorbar_position: str = "right",
      colorbar_limit: Tuple[float, float] = (-1.0, 1.0),
      fmt_colorbar: str = "0.00 a",
      hovertemplate: str = "<b>%{meta.label_xaxis}</b>: %{x}<br>"
      "<b>%{meta.label_yaxis}</b>: %{y}<br>"
      "<b>Value</b>: %{z}"
      "<extra></extra>",
      **kwargs: Any,
  ) -> None:
      """
      Args:
          data (pd.DataFrame): Matrix with the coefficient values.
          label_xaxis (str): X-axis label, default ''.
          label_yaxis (str): X-axis label,  default ''.
          xrotation (int): Rotation degree to apply to the x axis, default 0.
          show_labels (bool): Whether to show the coefficient on the heatmap, default True.
          labels_format (str): Format to apply to the labels, default '{0:.2f}'.
          cmap (str): Color map or palette, default 'PuBu'.
          colorbar (bool): Whether to show the color bar, default True.
          colorbar_position (str): Where to position the colorbar, e.g. 'left', 'right', etc.
          colorbar_limit (Tuple[float, float]): Min and max colorbar range, default (-1, 1).
      """
      super().__init__(**kwargs)
      self.data = data
      self.label_xaxis = label_xaxis
      self.label_yaxis = label_yaxis
      self.xrotation = xrotation
      self.show_labels = show_labels
      self.labels_format = labels_format
      self.cmap = cmap
      self.colorbar = colorbar
      self.colorbar_position = colorbar_position
      self.fmt_colorbar = fmt_colorbar
      self.colorbar_limit = colorbar_limit
      self.hovertemplate = hovertemplate
      self._annotations: list = []
  
file_path: tslumen/tslumen/plot/interactive/comparison.py
imports: from typing import Optional, Any, List, Union, Tuple
  import pandas
  from tslumen.plot.interactive.base import VizBase, go
  from tslumen.plot.utils import cmapper, ccontrast
label_desc: Use image node_id 1 to create a new Heatmap object from inherited base classes: VizBase with example: obj = Heatmap(data, label_xaxis, label_yaxis, xrotation, show_labels, labels_format, cmap, colorbar, colorbar_position, colorbar_limit, fmt_colorbar, hovertemplate)