cedalion.vis.quality

Tools for visualizing signal quality metrics and masks.

Functions

plot_quality_mask(mask, cb_label[, ...])

Plot a boolean quality mask as a colour-coded channel × time heatmap.

cedalion.vis.quality.plot_quality_mask(
mask,
cb_label: str,
bool_labels=['TAINTED', 'CLEAN'],
true_is_good=True,
figsize=(12, 10),
)[source]

Plot a boolean quality mask as a colour-coded channel × time heatmap.

Parameters:
  • mask – Boolean DataArray with "channel" and "time" dimensions.

  • cb_label – Label for the colorbar.

  • bool_labels – Two-element list giving the colorbar tick labels for False and True values respectively (default: ["TAINTED", "CLEAN"]).

  • true_is_good – Passed to mask_cmap(); if True (default), True is rendered in blue (good).

  • figsize – Matplotlib figure size tuple.