Skip to content

Cannot scroll to last epoch in epochs.plot() #13653

Description

@cbrnr

When using the Matplotlib backend, epochs.plot() does not allow scrolling to the final epoch by clicking into the horizontal scrollbar (the right arrow key works correctly). This issue does not occur when using the Qt backend.

Here's a reproducible example:

from numpy.random import default_rng

import mne

mne.viz.set_browser_backend("matplotlib")

n_channels = 3
n_epochs = 25
duration = 2
sfreq = 250

rng = default_rng(42)
data = rng.standard_normal(size=(n_epochs, n_channels, duration * sfreq)) * 5e-6
info = mne.create_info(n_channels, sfreq, "eeg")
epochs = mne.EpochsArray(data, info)

epochs.plot(block=True)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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