plot_signals#
- pepbench.plotting.plot_signals(datapoint: BasePepDataset, *, collapse: bool = False, normalize_time: bool = False, heartbeat_subset: Sequence[int] | None = None, **kwargs: Any) tuple[Figure, Axes | Sequence[Axes]][source]#
Plot ECG and ICG signals.
- Parameters:
- datapoint
BasePepDataset Dataset to plot.
- collapsebool, optional
If
True, plot ECG and ICG signals in one axis. IfFalse, plot ECG and ICG signals in two axes. Default:False.- normalize_timebool, optional
If
True, normalize time to seconds. IfFalse, use the original time format. Default:False.- heartbeat_subsetlist of int, optional
List of heartbeats (as indices) to plot. If
None, plot all heartbeats. Default:None.- kwargsdict, optional
Additional keyword arguments.
- datapoint