EnvEmgGaitPlotPanelViewer#

class pyCGM2.Report.Viewers.emgPlotViewers.EnvEmgGaitPlotPanelViewer(iAnalysis: Analysis, pointLabelSuffix: str | None = None)#

A viewer for plotting EMG envelops during gait analysis.

This viewer creates plots of EMG envelops for selected channels, providing insights into muscle activity throughout gait cycles.

Parameters:
  • iAnalysis (Analysis) – An Analysis instance containing processed EMG data.

  • pointLabelSuffix (str, optional) – A suffix added to EMG outputs for custom labeling.

__init__(iAnalysis: Analysis, pointLabelSuffix: str | None = None)#

Initialize the EnvEmgGaitPlotPanelViewer.

Methods

__init__(iAnalysis[, pointLabelSuffix])

Initialize the EnvEmgGaitPlotPanelViewer.

plotPanel()

Plot the EMG gait panel.

selectEmgChannels(channelNames)

Select specific EMG channels for plotting.

setAutomaticYlimits(bool)

Sets whether Y-axis limits should be auto-adjusted.

setConcretePlotFunction(concreteplotFunction)

Set a specific plot function for the viewer.

setEmgManager(emgManager)

Set the EMG Manager for the viewer.

setNormalizedEmgFlag(flag)

Enable/Disable amplitude-normalized emg

setNormativeData()

Abstract method to set a normative dataset.

setNormativeDataset(iNormativeDataSet)

Set a normative dataset for comparison (not implemented).

plotPanel()#

Plot the EMG gait panel.

Generates and returns the final plot figure with configured EMG data for gait analysis.

selectEmgChannels(channelNames: List[str])#

Select specific EMG channels for plotting.

Parameters:

channelNames (List[str]) – List of EMG channel names to be plotted.

setConcretePlotFunction(concreteplotFunction: Callable)#

Set a specific plot function for the viewer.

Parameters:

concreteplotFunction (Callable) – A plot function from pyCGM2.Report.plot.

setEmgManager(emgManager: EmgManager)#

Set the EMG Manager for the viewer.

Parameters:

emgManager (EmgManager) – An instance of EmgManager containing EMG processing details.

setNormalizedEmgFlag(flag: bool)#

Enable/Disable amplitude-normalized emg

Parameters:

flag (bool) – boolean flag

setNormativeDataset(iNormativeDataSet: NormativeData)#

Set a normative dataset for comparison (not implemented).

Parameters:

iNormativeDataSet (NormativeData) – Instance of NormativeData for comparison.