MultipleAnalysis_EnvEmgPlotPanelViewer#
- class pyCGM2.Report.Viewers.emgPlotViewers.MultipleAnalysis_EnvEmgPlotPanelViewer(iAnalyses: List[Analysis], legends: List[str], pointLabelSuffix: str | None = None)#
A viewer for plotting EMG envelops from multiple Analysis instances.
This viewer is used to compare EMG envelops across different Analysis instances, which can be useful for comparing muscle activities under different conditions.
- Parameters:
iAnalyses (List[Analysis]) – A list of Analysis instances to compare.
legends (List[str]) – Labels associated with each Analysis instance for legend display.
pointLabelSuffix (str, optional) – A suffix added to EMG outputs for custom labeling.
- __init__(iAnalyses: List[Analysis], legends: List[str], pointLabelSuffix: str | None = None)#
Initialize the MultipleAnalysis_EnvEmgPlotPanelViewer.
Methods
__init__
(iAnalyses, legends[, pointLabelSuffix])Initialize the MultipleAnalysis_EnvEmgPlotPanelViewer.
Plot the EMG panel with data from multiple analyses.
selectEmgChannels
(channelNames)Select specific EMG channels for visualization across multiple analyses.
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.
- plotPanel()#
Plot the EMG panel with data from multiple analyses.
Generates and returns the final plot figure with configured EMG data for comparative analysis.
- selectEmgChannels(channelNames: List[str])#
Select specific EMG channels for visualization across multiple analyses.
- Parameters:
channelNames (List[str]) – List of EMG channel names to include in the plots.
- 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.
Note: Currently, displaying normal EMG data is not implemented.
- Parameters:
iNormativeDataSet (NormativeData) – Instance of NormativeData for comparison.