rekha.plots.HeatmapPlotΒΆ

class rekha.plots.HeatmapPlot[source]ΒΆ

Create a heatmap.

Parameters:
  • z (array, optional) – 2D array of values (if not using DataFrame)

  • text_auto (bool, default False) – Whether to show values in cells

  • color_continuous_scale (str, optional) – Colormap name

  • **kwargs – Additional parameters passed to BasePlot

Methods

add_annotation(text, x, y, **kwargs)

Add annotation to the plot.

get_axes()

Get all axes from the figure.

save(filename[, format, transparent])

Save the plot to file with optimized settings for different use cases.

save_all_formats(base_name, **kwargs)

Save plot in all common formats for different use cases.

show()

Display the plot in the current output (Jupyter notebook, script, etc.).

show_legend()

Manually show the legend with appropriate styling.

update_layout(**kwargs)

Update plot layout - matplotlib style.

__init__(data=None, x: List[str] | None = None, y: List[str] | None = None, z: ndarray | None = None, text_auto: bool = False, color_continuous_scale: str | None = None, **kwargs)[source]ΒΆ

Create a heatmap.

Parameters:
  • z (array, optional) – 2D array of values (if not using DataFrame)

  • text_auto (bool, default False) – Whether to show values in cells

  • color_continuous_scale (str, optional) – Colormap name

  • **kwargs – Additional parameters passed to BasePlot