Visualization¶
Utilities for visualising epoch rejection results.
viz
¶
Visualization utilities for dropped epoch analysis.
droplog_dataframe
¶
Build a tidy DataFrame of dropped epochs and their rejection reasons.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epochs
|
Epochs
|
Epochs object after rejection ( |
required |
Returns:
| Type | Description |
|---|---|
DataFrame
|
DataFrame with columns |
DataFrame
|
One row per (dropped epoch, rejection reason) pair. Empty if no epochs |
DataFrame
|
were dropped. |
Source code in src/meegflow/viz.py
plot_drops_by_reason_and_type
¶
Plot a stacked bar chart of dropped epochs broken down by reason and event type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epochs
|
Epochs
|
Epochs object after rejection ( |
required |
title
|
str
|
Title for the figure axes. |
'Dropped epochs by reason and event type'
|
Returns:
| Type | Description |
|---|---|
Figure
|
Matplotlib Figure. If no epochs were dropped the figure contains a |
Figure
|
text message instead of a chart. |