plot_all_scores¶
- plot_all_scores(all_scores: dict[str, ndarray], conds: list[str], idxs: dict[str, list[int]], colors: list[list[float]], suptitle: str = None, fig: Figure = None, axs: Axes = None, ylims: tuple[float, float] = (0.1, 0.8), **plot_kwargs) tuple[Figure, Axes][source][source]¶
Plot scores for different conditions and categories.
This function creates plots of scores for different experimental conditions and categories, setting up appropriate axes and labels.
- Parameters:
all_scores (
dict[str,np.ndarray]) – Dictionary mapping score names to score arrays.conds (
list[str]) – List of condition names to plot.idxs (
dict[str,list[int]]) – Dictionary mapping category names to indices.colors (
list[list[float]]) – List of colors for each category.suptitle (
str, optional) – Super title for the figure, by default None.fig (
plt.Figure, optional) – Existing figure to plot on, by default None.axs (
plt.Axes, optional) – Existing axes to plot on, by default None.ylims (
tuple[float,float], optional) – Y-axis limits, by default (0.1, 0.8).**plot_kwargs – Additional keyword arguments passed to plot_dist.
- Returns:
The figure and axes objects containing the plots.
- Return type:
tuple[plt.Figure,plt.Axes]