NormalizedGaitGrfIntegrationPlotViewer#

class pyCGM2.Report.Viewers.groundReactionPlotViewers.NormalizedGaitGrfIntegrationPlotViewer(iAnalysis: Analysis, pointLabelSuffix: str | None = None, bodymass: float = 0)#

Plot the time-normalized center of mass (COM) kinematics from the integration of consecutive ground reaction forces.

Parameters:
  • iAnalysis (pyCGM2.Processing.analysis.Analysis) – An instance of an analysis object.

  • pointLabelSuffix (Optional[str]) – Suffix added to the plot labels, defaults to None.

  • bodymass (float) – Body mass to normalize the ground reaction force, defaults to 0.

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

Initialize the NormalizedGaitGrfIntegrationPlotViewer.

Methods

__init__(iAnalysis[, pointLabelSuffix, bodymass])

Initialize the NormalizedGaitGrfIntegrationPlotViewer.

plotPanel()

Plot the panel for the COM kinematics visualization derived from GRF integration.

setAutomaticYlimits(bool)

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

setConcretePlotFunction(concreteplotFunction)

Set a concrete plot function.

setNormativeData()

Abstract method to set a normative dataset.

setNormativeDataset(iNormativeDataSet)

Set the normative dataset

plotPanel()#

Plot the panel for the COM kinematics visualization derived from GRF integration.

This method integrates the ground reaction forces over time to visualize the kinematics of the center of mass. It plots the longitudinal, lateral, and vertical components of the COM acceleration, velocity, and position. The plot includes indication of stance phases and double support phases for both left and right sides.

Returns:

matplotlib.figure.Figure – The figure object representing the plotted COM kinematics.

setConcretePlotFunction(concreteplotFunction: Callable)#

Set a concrete plot function.

Parameters:

concreteplotFunction (Callable) – A function from pyCGM2.Report.plot to be used for plotting.

setNormativeDataset(iNormativeDataSet: NormativeData)#

Set the normative dataset

Parameters:

iNormativeDataSet (pyCGM2.Report.normativeDatasets.NormativeData) – a normative dataset instance