plot_signals_with_reference_pep#
- pepbench.plotting.plot_signals_with_reference_pep(datapoint: BasePepDatasetWithAnnotations, *, collapse: bool = False, normalize_time: bool = False, heartbeat_subset: Sequence[int] | None = None, **kwargs: Any) tuple[Figure, Axes][source]#
Plot signals and overlay reference-derived PEP intervals.
- Parameters:
- datapoint
BasePepDatasetWithAnnotations Dataset with reference annotations used to compute PEP intervals.
- collapsebool, optional
If
True, plot ECG and ICG on a single axis. Default:False.- normalize_timebool, optional
If
True, convert time index to seconds. Default:False.- heartbeat_subsetSequence[int] | None, optional
Subset of heartbeat indices to plot. If
None, all heartbeats are plotted.- **kwargsAny
Additional plotting options forwarded to plotting utilities.
- datapoint
- Returns:
Notes
PEP rectangles are created from concatenated reference label tables and drawn using the helper
pepbench.plotting._utils._add_pep_from_reference.