plot_surface_emg#
- myogen.utils.plotting.plot_surface_emg(surface_emg__tensor, axs, apply_default_formatting=True, **kwargs)[source]#
Plot the EMG signal across electrode grids.
- Parameters:
surface_emg__tensor (
SURFACE_EMG__TENSOR
) – Tensor of shape (n_pools, n_rows, n_cols, n_time) containing EMG signalsaxs (
list[Union[Axes
,np.ndarray]]
) – Matplotlib axes to plot on. Should provide one set of axes per pool. Each set can be a 2D array of axes (from plt.subplots), a single axis, or a 1D array. Expected structure: list of axes configurations, one per pool.apply_default_formatting (
bool
, defaultTrue
) – Whether to apply default formatting to the plot**kwargs (
dict
) – Additional keyword arguments to pass to the plot function. Only used if apply_default_formatting is False.
- Returns:
The axes that were plotted on
- Return type:
list[Union[Axes
,np.ndarray]]
- Raises:
ValueError – If the number of axes does not match the number of pools