subject_plot_base
Classes
Base class for generating subject-level summary plots. |
- class SubjectPlotBase[source]
Bases:
objectBase class for generating subject-level summary plots.
- create_plot(df: pandas.DataFrame, summary_df: pandas.DataFrame, width: float = 10, height: float = 8) matplotlib.figure.Figure[source]
Creates a subject summary plot.
Default behavior is to plot a bar chart of trials per day. This method is intended to be overridden by subclasses for custom plots.
- Parameters:
df (pd.DataFrame) – The subject’s detailed data.
summary_df (pd.DataFrame) – A summary DataFrame for the subject.
width (float, optional) – Width of the figure. Defaults to 10.
height (float, optional) – Height of the figure. Defaults to 8.
- Returns:
The generated matplotlib figure.
- Return type:
Figure