Static visualizations#
Static visualizations of sequences and frequent sequential patterns (matplotlib).
Every function returns the matplotlib Axes it drew on (multi-panel views
return the Figure) and accepts an ax argument; none calls plt.show().
family |
functions |
|---|---|
NBVFS (Bántay & Abonyi) |
|
pattern lists |
|
trees |
|
flows |
|
matrices |
|
placements |
|
sets |
|
sequences |
|
overview |
More than thirty matplotlib views of sequences and patterns.
Functions#
|
Colors of the items of a database (most frequent first), keyed by label or item. |
|
Coordinates of the patterns from a similarity (name, matrix, or a list of them to fuse). |
|
Stable item → color mapping. |
|
Arc diagram of the repeated subsequences of one long sequence (Wattenberg, 2002). |
|
Chord diagram of the transitions between the |
|
Pattern communities (Louvain) on the MDS map, with convex hulls and representative patterns. |
|
Cover of the sequences by the patterns of an MDL summary. |
|
Dotted chart: every event a dot at (time, sequence), colored by event. |
|
Word tree in both directions around a pivot event or pattern. |
|
2-D map of the patterns from any similarity (or a fused list of similarities). |
|
Minimal occurrences of the most frequent serial episodes on the time axis. |
|
Number of all, closed and maximal patterns against the minimum support. |
|
Box plots of the time span (or the gaps) of the occurrences of the |
|
How support splits when frequent sequences grow (support flows of the extension network). |
|
Pattern-induced higher-order network (memory nodes around their first-order event). |
|
Icicle plot of the prefix tree (CoreFlow/LifeFlow style). |
|
Pattern–sequence incidence matrix \(\mathbf{T}\) with seriated rows and columns. |
|
Pattern landscape: support-weighted density of the MDS map as a terrain with labeled peaks. |
|
Hasse diagram of the containment order, one row per pattern length. |
|
MatrixWave-style sequence of transition matrices between consecutive steps. |
|
Draw a fitted |
|
Fit and draw the confidence-based MDS map (NBVFS-CM); |
|
Fit and draw the transaction-based MDS map (NBVFS-TM). |
|
Fit and draw the weighted extension network (NBVFS-WN) of a pattern set. |
|
Six linked views of one mining run: sunburst of the raw sequences, NBVFS-WN, NBVFS-TM, transition graph, sequence index plot with the top pattern, and the support/confidence plane. |
|
Patterns as points in the plane of two measures, linked to their parents. |
|
Glyph table of the best patterns: events as colored tiles, measures as bars. |
|
Prediction fan: the observed events, the matched frequent context, and the ranked continuations. |
|
Node-link prefix tree with edges as wide as the number of sequences passing. |
|
Grouped matrix of sequential rules: antecedents in columns, consequents in rows. |
|
Alluvial diagram of the first steps of the sequences. |
|
The most frequent complete sequences, bar height proportional to their frequency. |
|
Sequence index plot: one row per sequence, one colored cell per element. |
|
Sequence logo of the events around an anchor (or of the first positions). |
|
Seriated heatmap of a pattern similarity with its dendrogram. |
|
Chronogram: distribution of the events at every position, with the cross-sectional entropy. |
|
Sequences sunburst: depth on rings, angle proportional to the number of sequences. |
|
Directly-follows graph: node size = occurrences, edge width = transitions, color = probability. |
|
Heatmap of first-order transition counts or probabilities ( |
|
UpSet plot of the supporting sequences of the |
|
Order of rows/columns that places similar items next to each other (hierarchical clustering). |
|
The tree behind the tree views: a prefix tree of a database or the pattern tree of a pattern set. |
Constants#
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |
|
Built-in mutable sequence. |
|
Built-in mutable sequence. |