spmviz.viz.plot_arc_diagram#

spmviz.viz.plot_arc_diagram(sequence, ax=None, min_length=2, max_arcs=80, labels=True, db=None, title=None)[source]#

Arc diagram of the repeated subsequences of one long sequence (Wattenberg, 2002).

Consecutive non-overlapping occurrences of every maximal repeated contiguous subsequence of length at least min_length are joined by a semicircle whose thickness is the length of the repeat.

Examples using spmviz.viz.plot_arc_diagram#

Arc diagram of a melody

Arc diagram of a melody