Skip to content

MNE Report: Add Events produces cut-off plots. Can we do better? #12835

@sappelhoff

Description

@sappelhoff

For example, look at this screenshot, from a report where an Events section was added through report.add_events:

image

☝️ The plot is "cut off" in the legend box, both in terms of height and width.

Furthermore, the y-axis ticklabels are very tightly squashed together

If I want to get the non-cutoff version of this plot, then I cannot currently use report.add_events.

I need to replicate the plot myself using plot_events, setting a proper figure size, saving the plot using bbox_inches="tight", and then adding the file with add_image, which is a bit inconvenient.

Would it be reasonable to allow for a bit more customization on how much space report.add_events may reserve for the plot? So that I could also produce plots that are not cut-off with the easier add_events workflow?

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