lgca.plots.clip_frequencies

lgca.plots.clip_frequencies(y)

Clip a frequency trace to the non-zero span used by Muller plots.

Adapted from https://phylo-baltic.github.io/baltic-gallery/advanced-muller-plots-raw/.

Parameters:

y (numpy.ndarray) – Frequency values over time.

Returns:

(x_clipped, x) where x_clipped indexes the clipped trace and x indexes the full trace.