moabb.datasets.utils.plot_datasets_cluster#
- moabb.datasets.utils.plot_datasets_cluster(datasets: list[BaseDataset | dict] | None = None, meta_gap: float = 10.0, **kwargs)[source]#
Plots all the MOABB datasets in one figure, grouped in one cluster.
This uses the
dataset_bubble_plot()
function to plot the datasets. The datasets are sorted in alphabetical order and plotted in a grid with n_col columns.- Parameters:
datasets (list[BaseDataset | dict] | None) –
List of datasets to plot. If None, all datasets are plotted. If an element of the list is a dictionary, it is assumed to have the following keys:
- dataset_name: str
Name of the dataset.
- paradigm: str
Paradigm of the dataset (e.g., ‘imagery’, ‘p300’).
- n_subjects: int
Number of subjects in the dataset.
- n_sessions: int
Number of sessions in the dataset.
- n_trials: int
Number of trials in the dataset.
- trial_len: float
Length of each trial in seconds.
meta_gap (float) – Gap between the different datasets in the cluster.
kwargs (dict) – Additional arguments to pass to the dataset_bubble_plot function.
- Returns:
fig – Pyplot handle
- Return type:
Figure