PlotViewer#
- class pyCGM2.Report.Viewers.plotViewers.PlotViewer(input, AutomaticYlimits: bool = True)#
Abstract base class for plot viewers used in pyCGM2.
This class sets up the structure for specific plot viewers and initializes common attributes.
- Parameters:
input – Input data for the plot. Type depends on the subclass implementation.
AutomaticYlimits (bool, optional) – Flag to set Y axis limits automatically. Defaults to True.
- __init__(input, AutomaticYlimits: bool = True)#
Methods
__init__
(input[, AutomaticYlimits])Abstract method to execute the plotting.
setAutomaticYlimits
(bool)Sets whether Y-axis limits should be auto-adjusted.
Abstract method to set a normative dataset.
- plotPanel()#
Abstract method to execute the plotting.
Must be implemented in subclasses to create the finalized plot.
- setAutomaticYlimits(bool: bool)#
Sets whether Y-axis limits should be auto-adjusted.
- Parameters:
bool (bool) – True to activate automatic adjustment of Y-axis limits.
- setNormativeData()#
Abstract method to set a normative dataset.
Must be implemented in subclasses if necessary.