MuscleNormalizedPlotPanelViewer#

class pyCGM2.Report.Viewers.musclePlotViewers.MuscleNormalizedPlotPanelViewer(iAnalysis: Analysis, pointLabelSuffix: str | None = None)#

This class creates a panel viewer for normalized muscle plots.

It is designed to visualize the envelops of muscle parameters, such as length or activation, normalized over the gait cycle.

Parameters:
  • iAnalysis (pyCGM2.Processing.analysis.Analysis) – The analysis instance containing muscle data.

  • pointLabelSuffix (str, Optional[None]) – A suffix to add to the muscle data points, if any.

__init__(iAnalysis: Analysis, pointLabelSuffix: str | None = None)#

Initialize the MuscleNormalizedPlotPanelViewer with an analysis instance and optional point label suffix.

Methods

__init__(iAnalysis[, pointLabelSuffix])

Initialize the MuscleNormalizedPlotPanelViewer with an analysis instance and optional point label suffix.

plotPanel()

Render and display the muscle normalized plot panel.

setAutomaticYlimits(bool)

Sets whether Y-axis limits should be auto-adjusted.

setConcretePlotFunction(concreteplotFunction)

Set a concrete plot function for rendering the muscle data.

setMuscleOutputType(type)

Set the type of muscle output to be visualized, such as muscle length or activation.

setMuscles(iMuscles)

Define the list of muscles to be included in the plot.

setNormalizationSuffix(suffix)

Set a suffix for normalization to be appended to muscle data labels.

setNormativeData()

Abstract method to set a normative dataset.

setNormativeDataset(iNormativeDataSet)

Assign a normative dataset to the viewer for reference in the plots.

plotPanel()#

Render and display the muscle normalized plot panel.

This method creates the muscle plot panel, combining the set data with the layout and visual elements prepared earlier.

setConcretePlotFunction(concreteplotFunction: Callable)#

Set a concrete plot function for rendering the muscle data.

Parameters:

concreteplotFunction (Callable) – A function from pyCGM2.Report.plot that will be used for plotting the muscle data.

setMuscleOutputType(type: str)#

Set the type of muscle output to be visualized, such as muscle length or activation.

Parameters:

type (str) – A string representing the type of muscle output (e.g., “MuscleLength”).

setMuscles(iMuscles: List)#

Define the list of muscles to be included in the plot.

Parameters:

iMuscles (List) – A list of muscle names to be visualized.

setNormalizationSuffix(suffix: str)#

Set a suffix for normalization to be appended to muscle data labels.

Parameters:

suffix (str) – The suffix to be added for normalization purposes.

setNormativeDataset(iNormativeDataSet: NormativeData)#

Assign a normative dataset to the viewer for reference in the plots.

Parameters:

iNormativeDataSet (pyCGM2.Report.normativeDatasets.NormativeData) – The normative data to be used as a reference in the plots.