TemporalEmgPlotViewer#
- class pyCGM2.Report.Viewers.emgPlotViewers.TemporalEmgPlotViewer(iAcq: btkAcquisition, pointLabelSuffix: str | None = None)#
A viewer for plotting temporal EMG data.
This viewer plots raw or processed EMG data from a btk.Acquisition instance over time, allowing for the visualization of EMG activity during the course of an acquisition.
- Parameters:
iAcq (btk.Acquisition) – The acquisition containing EMG data.
pointLabelSuffix (str, optional) – A suffix added to EMG channel names for custom labeling.
- __init__(iAcq: btkAcquisition, pointLabelSuffix: str | None = None)#
Initialize the TemporalEmgPlotViewer.
Methods
__init__(iAcq[, pointLabelSuffix])Initialize the TemporalEmgPlotViewer.
ignoreNormalActivty(bool)Enable or disable the display of normal EMG activity in the plot.
Plot the panel with EMG data.
selectEmgChannels(channelNames)Select specific EMG channels for plotting.
setAutomaticYlimits(bool)Sets whether Y-axis limits should be auto-adjusted.
setEmgManager(emgManager)Set the EMG Manager for the viewer.
setEmgRectify(flag)Enable or disable EMG rectification in the plot.
setNormativeData()Abstract method to set a normative dataset.
setNormativeDataset(iNormativeDataSet)Set a normative dataset for comparison.
- ignoreNormalActivty(bool: bool)#
Enable or disable the display of normal EMG activity in the plot.
- Parameters:
bool (bool) – True to ignore normal EMG activity, False to display it.
- plotPanel()#
Plot the panel with EMG data.
Generates and returns the final plot figure with configured EMG data.
- selectEmgChannels(channelNames: List[str])#
Select specific EMG channels for plotting.
- Parameters:
channelNames (List[str]) – List of EMG channel names to be plotted.
- setEmgManager(emgManager: EmgManager)#
Set the EMG Manager for the viewer.
- Parameters:
emgManager (EmgManager) – An instance of EmgManager containing EMG processing details.
- setEmgRectify(flag: bool)#
Enable or disable EMG rectification in the plot.
- Parameters:
flag (bool) – True to enable rectification, False to disable.
- 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.