Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Hive Plot

Signature

sp.hive(title, axes, labels, categories, values, edges_i, edges_j, edges_w, *, variant="basic", **kwargs) -> Chart

Aliases: sp.hive, sp.hive_plot, sp.hive_chart, sp.hive_graph, sp.radial_network

Description

Hive plots organize network nodes on radial axes by category. Each axis corresponds to one node group (axes). Node position along the axis is determined by values (0–1). Edges between nodes are drawn as straight or curved lines through the center.

Variants

Data

axes (list[str]) — Axis (group) names. labels (list[str]) — Node names. categories (list[str]) — Group assignment per node. values (list[float]) — Node position along axis (0–1). edges_i (list[int]) — Source node indices. edges_j (list[int]) — Target node indices. edges_w (list[float]) — Edge weights. width / height (int) — Chart dimensions.

Parameters

Themes

Returns

Chart — object with .html property and .show() method.

Straight edge lines

Variant "basic"Aliases basic / default / classic
Preview

Cubic bezier curves through center

Variant "curved"Aliases curved / smooth / bezier
Preview

Stroke width proportional to edge weight

Variant "weighted"Aliases weighted / width / value
Preview

Straight (uncurved), thin, low-opacity edges with small strokeless nodes — a decluttered reading of dense hive plots that trades the curved-edge chrome for raw connectivity.

Variant "minimal"Aliases minimal / thin / clean
Preview

Draws a small arrowhead where each edge lands on its target node — hive plots are frequently used for directed graphs (network traffic, citations), and this makes the direction readable at a glance instead of implied.

Variant "directed"Aliases directed / arrows / flow / dependency
Preview