API Reference¶

Complete parameter documentation for all Rekha functions and classes. For usage guides and examples, see the User Guide.

Core Functions¶

line

Create a line plot with Rekha styling.

scatter

Create a scatter plot with Rekha styling.

bar

Create a bar plot with Rekha styling.

histogram

Create a histogram with Rekha styling.

heatmap

Create a heatmap with Rekha styling.

box

Create a box plot with Rekha styling.

cdf

Create a cumulative distribution function (CDF) plot with Rekha styling.

subplots

Create subplots with Rekha theme.

set_rekha_theme

Set the Rekha matplotlib theme

Plot Classes¶

Advanced users can access plot classes directly for more control:

LinePlot

Create a line plot.

ScatterPlot

Create a scatter plot.

BarPlot

Create a bar plot.

HistogramPlot

Create a histogram.

HeatmapPlot

Create a heatmap.

BoxPlot

Create a box plot.

CDFPlot

Create a CDF plot.

BasePlot

Initialize base plot with common parameters.

Utilities¶

prepare_data

Extract x and y data from various input formats.

validate_data

Validate data and column specifications.

get_color_palette

Get the Rekha color palette.

map_colors_to_categories

Map colors to categories with consistent ordering.