hatvis.plotting.plot_upset#
- hatvis.plotting.plot_upset(H, by='edges', max_bars=20, weighted=True, fig=None, title=None)[source]#
UpSet plot (Lex et al. 2014) of a hypergraph.
by="edges": one column per distinct vertex set (hyperedge pattern), bar height = total weight (or multiplicity) of the hyperedges with that set, dot matrix = the member vertices, horizontal bars = vertex degrees. This is the natural view of frequent itemsets.by="nodes": the dual view, one column per distinct membership pattern of the vertices. Returns the figure and a dict of axes.