interactive_heatmap

interactive_heatmap#

class braintools.visualize.interactive_heatmap(data, x_labels=None, y_labels=None, title='Interactive Heatmap', colorscale='Viridis', width=800, height=600, **kwargs)#

Create interactive heatmap using Plotly.

Parameters:
  • data (ndarray) – 2D data array.

  • x_labels (List[str] | None) – Axis labels.

  • y_labels (List[str] | None) – Axis labels.

  • title (str) – Plot title.

  • colorscale (str) – Plotly colorscale name.

  • width (int) – Figure dimensions.

  • height (int) – Figure dimensions.

  • **kwargs – Additional arguments passed to Plotly heatmap.

Returns:

fig – Interactive plotly figure.

Return type:

plotly.graph_objects.Figure