mekPlotTemporalEmgLayoutProcedure#
- class pyCGM2.Mek.mek.mekPlot.mekPlotTemporalEmgLayoutProcedure(layout=None, figsize=(8.27, 11.69))#
Plot temporal EMG signals of one trial according to a layout.
Foot strikes (solid) and foot offs (dashed) are drawn for both sides, and the normal burst activity of the muscle (plot key
normalActivation) is shaded for every cycle of the curve’s event context.- Parameters:
layout (dict) – EMG layout (see
fillEmgLayout()).figsize (tuple, optional) – Figure size in inches.
- __init__(layout=None, figsize=(8.27, 11.69))#
Methods
__init__([layout, figsize])filterEventContext([eventContext])Keep only the curves of an event context.
plot()Build the figure.
setData(trialGroup)Set the trial group to plot.
- plot()#
Build the figure.
- Returns:
matplotlib.figure.Figure – The figure.
- setData(trialGroup)#
Set the trial group to plot.
- Parameters:
trialGroup – moveck group of a trial holding the EMG sets and an
eventsgroup (e.g..../Condition1/Extraction/EMG/rectify/<trial>.c3d).