cogpy.plot.hv.multichannel_timeseries

Multichannel time-series viewer helpers (HoloViews/Panel).

This module provides a small “viewer-like” plot for (time, channel) signals.

Primary output (when available)

  • HoloViews Overlay of stacked traces using subcoordinate_y=True

  • Linked minimap (z-scored image) via RangeToolLink

Fallback

  • Matplotlib stacked traces

Notes

This file was promoted from code/utils/plot/multichannel_timeseries.py so it can be reused by CogPy plotting components (e.g. orthoslicers) without relying on project-level utils imports. The original location keeps a small compatibility shim.

Functions

flat_to_rc(idx, n_cols)

multichannel_timeseries_lite(t_s, x_tch, *)

Lightweight multichannel time-series view (HoloViews-only).

multichannel_timeseries_view(t_s, x_tch, *)

rc_to_flat(r, c, n_cols)

select_channels(x_tch, selected)

Slice x_tch by channel indices (keeps time dimension).

subgrid_indices(n_rows, n_cols, *[, row0, ...])

Return a list of (row, col) indices for a strided subgrid selection.