Problem dropping epochs using epochs.plot()

  • MNE-Python version: 0.23.0
  • operating system: Windows

I am doing a visual inspection on my EEG data, which is already epoched. I plot the epochs using epochs.plot() and select the ones that I want to remove. When I close the plot, it returns:

Dropped x epochs: x_1, x_2, …, x_N

The problem is that if I do epochs.plot() again, I find that the epochs that I had dropped are still there and, instead, a whole bunch of different epochs adjacent to those I intended to remove are missing.

I need a solution for this problem as soon as possible.

are you sure you look at the epochs “after” dropping? you can look at .drop_log attribute to see


Yes, I am sure. I have confirmation that there is an actual bug, I have opened an issue on github

Fixed in Fix scrolling behavior in epochs.plot() by drammock · Pull Request #9459 · mne-tools/mne-python · GitHub