MapComparisonViewer#
- class pyCGM2.Report.Viewers.comparisonPlotViewers.MapComparisonViewer(iAnalyses: List[Analysis], legends: List[str], pointLabelSuffix_lst: List[str] | None = None)#
A viewer for comparing Movement Analysis Scrore across multiple Analysis instances.
- Parameters:
iAnalyses (List[Analysis]) – Instances of analyses to be compared.
legends (List[str]) – Descriptive labels for each analysis instance.
pointLabelSuffix_lst (Optional[List[str]]) – Suffixes for model output labels.
bodyPart (enums.BodyPartPlot) – The body part to be visualized, defaults to LowerLimb.
- __init__(iAnalyses: List[Analysis], legends: List[str], pointLabelSuffix_lst: List[str] | None = None)#
Initialize the comparison plot viewer
Methods
__init__(iAnalyses, legends[, ...])Initialize the comparison plot viewer
Generates and plots the MAP comparison panel.
setAutomaticYlimits(bool)Sets whether Y-axis limits should be auto-adjusted.
setNormativeData()Abstract method to set a normative dataset.
setNormativeDataset(iNormativeDataSet)Set the normative dataset for comparison.
- plotPanel()#
Generates and plots the MAP comparison panel.
This method orchestrates the plotting process, including setting up the layers, arranging data, and rendering the final plot.
- Returns:
matplotlib.figure.Figure – The generated plot as a matplotlib figure object.
- setNormativeDataset(iNormativeDataSet: NormativeData)#
Set the normative dataset for comparison.
- Parameters:
iNormativeDataSet (NormativeData) – An instance of a normative dataset.