mekPlotNormalizedLayoutProcedure#

class pyCGM2.Mek.mek.mekPlot.mekPlotNormalizedLayoutProcedure(layout=None, consistency=False, figsize=(8.27, 11.69))#

Plot time-normalized cycles of one or several condition groups according to a layout.

With one group, curves are coloured by event context (Left red, Right blue). With several groups (e.g. sessions to compare), each group gets a shade of the context colour and the legend shows <legendLabel> - <group legend>.

Parameters:
  • layout (dict) – Layout of the figure.

  • consistency (bool, optional) – Plot every cycle instead of mean +/- std. Defaults to False.

  • figsize (tuple, optional) – Figure size in inches.

__init__(layout=None, consistency=False, figsize=(8.27, 11.69))#

Methods

__init__([layout, consistency, figsize])

filterEventContext([eventContext])

Keep only the curves of an event context.

plot()

Build the figure.

setData(groups[, legends])

Set the condition groups to plot.

plot()#

Build the figure.

Returns:

matplotlib.figure.Figure – The figure.

setData(groups, legends=None)#

Set the condition groups to plot.

Parameters:
  • groups – moveck condition group, or list of groups to compare.

  • legends (list of str, optional) – One legend per group (needed to tell groups apart).