moabb.datasets.utils.plot_datasets_grid#

moabb.datasets.utils.plot_datasets_grid(datasets: list[BaseDataset | dict] | None = None, n_col: int = 10, margin: float = 10.0, **kwargs)[source]#

Plots all the MOABB datasets in one figure, distributed on a grid.

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.

  • n_col (int) – Number of columns in the figure.

  • margin (float) – Margin around the plots.

  • kwargs (dict) – Additional arguments to pass to the dataset_bubble_plot function.

Returns:

fig – Pyplot handle

Return type:

Figure