Skip to content

ENH: Allow sphx-glr-multi-img images to span multiple lines #1371

@tsbinns

Description

@tsbinns

Discussed with @larsoner.

When plotting multiple figures from the same cell, the figures are placed in the html as sphx-glr-multi-img images in a sphx-glr-horizontal list. Although each figure is stored in a new list element, if the figures are wide, they are shrunk down regardless of the specified figure sizes and placed on (what is essentially) the same line, which can make them illegible, e.g.: https://mne.tools/mne-connectivity/dev/auto_examples/decoding/cohy_decomposition_plotting.html#visualising-the-filters

It would be nice to have some sort of option that if multiple figures are shown from the same cell, the list elements containing each of the figures would be placed beneath one another. E.g.,

Before:
image

After:
image

Other ideas are also welcome. If people think this is a sensible feature I am happy to write a PR (though I wouldn't have the time until later in the year).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions