Heatmaps¶

Heatmaps are perfect for visualizing 2D data, correlation matrices, confusion matrices, and pivot tables. Rekha’s heatmaps offer intuitive color mapping, text annotations, and customizable color scales.

Basic Usage¶

import rekha as rk
import pandas as pd
import numpy as np

# Simple correlation heatmap
df = pd.DataFrame(np.random.randn(50, 4), columns=['A', 'B', 'C', 'D'])
correlation_matrix = df.corr()

fig = rk.heatmap(correlation_matrix, title='Correlation Matrix', text_auto=True)
fig.show()

Parameters¶

See the API Reference for complete parameter documentation.

See Also¶