Can we color code specific channels in mne.Epochs?

Dear developers,
I am using the following system:

  • MNE-Python version: 0.22.0
  • operating system: Windows 10

I have a created events data from which a nice looking epochs of the data can be plotted. My question is there are some channels specific to each of these epochs and it is not common among all of them. Is there a way I can color code those channels to signify in which channel the event has been detected for the specific epoch?
I am looking forward your help.
Thanks

I was using the Epoch’s object plot method which didn’t have the required functionality.
While I was searching the codes to modify it, I found that mne.viz.plot_epochs gets as input a list of colors for each epochs which is exactly what I was looking for.

actually my_epochs.plot(...) should be equivalent to mne.viz.plot_epochs(my_epochs, ...). Are you saying that you can’t get the epoch_colors parameter to work when using the .plot() method? If so, it would be a bug.

I guess that was the case when I was using version 0.22 of the library. I am now using the 0.23 version of the library and now it works with that argument.