weights_plot
Functions
|
Generates a multi-panel plot of subject weights over time. |
- weights_plot(df: pandas.DataFrame, width: float, height: float) matplotlib.figure.Figure[source]
Generates a multi-panel plot of subject weights over time.
Creates individual subplots for each subject to visualize weight trends. Applies data filtering using Interquartile Range (IQR) to handle outliers.
- Parameters:
df (pd.DataFrame) – DataFrame containing ‘subject’, ‘date’, and ‘weight’ columns.
width (float) – Width of the figure in inches.
height (float) – Height of the figure in inches.
- Returns:
The generated matplotlib figure containing the subplots.
- Return type:
Figure