CoactivationEmgPlotViewer#
- class pyCGM2.Report.Viewers.emgPlotViewers.CoactivationEmgPlotViewer(iAnalysis: Analysis, pointLabelSuffix: str | None = None)#
- A viewer for plotting EMG coactivation data. - This viewer facilitates the visualization of muscle coactivation by plotting EMG data from two selected muscles and highlighting their coactivation periods. - 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 CoactivationEmgPlotViewer. 
 - Methods - __init__(iAnalysis[, pointLabelSuffix])- Initialize the CoactivationEmgPlotViewer. - Plot the coactivation panel with EMG data. - setAutomaticYlimits(bool)- Sets whether Y-axis limits should be auto-adjusted. - setConcretePlotFunction(concreteplotFunction)- Set a concrete plot function for the viewer. - setContext(context)- Set the context for the coactivation analysis. - setEmgs(label1, label2)- Set the EMG labels for coactivation analysis. - setMuscles(label1, label2)- Set the names of the muscles for coactivation analysis. - setNormativeData()- Abstract method to set a normative dataset. - setNormativeDataset(iNormativeDataSet)- Set a normative dataset for comparison. - plotPanel()#
- Plot the coactivation panel with EMG data. - Generates and returns the final plot figure with configured EMG coactivation data. 
 - setConcretePlotFunction(concreteplotFunction: Callable)#
- Set a concrete plot function for the viewer. - Parameters:
- concreteplotFunction (Callable) – A specific plot function from pyCGM2.Report.plot. 
 
 - setContext(context: str)#
- Set the context for the coactivation analysis. - Parameters:
- context (str) – The context of the analysis (e.g., ‘Left’, ‘Right’). 
 
 - setEmgs(label1: str, label2: str)#
- Set the EMG labels for coactivation analysis. - Parameters:
- label1 (str) – Label of the first EMG channel. 
- label2 (str) – Label of the second EMG channel. 
 
 
 - setMuscles(label1: str, label2: str)#
- Set the names of the muscles for coactivation analysis. - Parameters:
- label1 (str) – Name of the first muscle. 
- label2 (str) – Name of the second muscle. 
 
 
 - setNormativeDataset(iNormativeDataSet: NormativeData)#
- Set a normative dataset for comparison. - Note: Currently, displaying normal EMG data is not implemented. - Parameters:
- iNormativeDataSet (NormativeData) – Instance of NormativeData for comparison. 
 
 
