plot

PersistenceTrace.plot(line_kws=None)

Plots the total persistence trace.

The x-axis shows the last minimum cluster size value before a cluster becomes a leaf! This matches the left-open (birth, death] interval used in the leaf tree and is needed to support weighted samples.

Parameters:

line_kws (dict[str, Any] | None, default: None) – Additional keyword arguments for the line plot.