hatvis.plotting#
Plotting functions of hatvis (matplotlib).
Every function takes ax=None (or axes/fig), returns the axes and
never calls plt.show(). Categorical colors follow the Okabe–Ito palette
PALETTE.
Node-link drawings, matrix views (incidence, PAOH, UpSet, house of quality) and analysis plots.
Functions#
|
|
|
Draw a hypergraph as vertices with hyperedge outlines. |
|
The HAT-VIS drawing (Czvetkó and Abonyi 2024). |
|
Star-expansion (bipartite, extra-node) drawing: vertices as circles, hyperedges as squares. |
|
Clique expansion drawn as a weighted graph (line width ~ pair weight). |
|
The \(s\)-line graph: hyperedges as nodes (size ~ \(|e|\)), links width ~ \(|e\cap f|\). |
|
Circular drawing: vertices on a circle, every hyperedge as a hub with curved spokes. |
|
Linked primal and dual views (after Qu, Zhang and Zhang 2022). |
|
Return |
|
Incidence matrix as a heat map, optionally seriated and with highlighted biclusters. |
|
Parallel Aggregated Ordered Hypergraph (PAOH) view (Valdivia et al. 2021). |
|
UpSet plot (Lex et al. 2014) of a hypergraph. |
|
House of quality diagram: relationship matrix, importance column, technical importance row and roof. |
|
Heat map of the vertex similarity matrix in a seriated order. |
|
Degree and hyperedge-size distributions side by side. |
|
The s-profile (new in hatvis): how every hyperedge behaves as the overlap threshold \(s\) grows. |
|
Horizontal bar chart of the largest values of a centrality (or any) Series. |
|
Draw an inclusion lattice (Hasse diagram, |
|
Bar chart of motif significance (output of |
|
Vertex activity over time: the number of hyperedges of each vertex per time stamp (heat map). |
|
Side-by-side \(s\)-line graphs of the vertices for several \(s\) (cf. |
|
Convex hull vertices in counter-clockwise order (Andrew's monotone chain). |
|
Convex hull of circles of radius |
|
Chaikin corner cutting of a closed polygon (rounded hull outlines). |
|
Area of a simple polygon (shoelace formula). |
|
Minimum-volume enclosing ellipse of a point set. |
|
Boundary points (a closed curve) of the ellipse returned by |
|
Edges of the minimum spanning tree of a point set (Prim's algorithm). |
|
Implicit outline of a point set (in the spirit of Bubble Sets, Collins et al. 2009). |
Constants#
Built-in mutable sequence. |
|
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |
|
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |
|
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |
|
Built-in mutable sequence. |
|
Built-in mutable sequence. |