Setting channels colors with add_sensors/mne.viz.plot_alignment

Hello evereyone,

  • MNE-Python version: 0.24.0
  • operating system: linux

Hello all, I am working with seeg and ecog data for my project, and I would like to know whether there is any way to set the color of the electrodes that are being plotted on the brain surface using the function plot_alignment or the brain method add_sensors.

I would like to be able to do so to be able to plot the electrodes of different patients in different colors or using some color scalings based on selectivity index and that sort of things.

While the solution shown in this tutorial: works fine for ecog data, it doesn’t work that nicely for seeg data. Indeed, the problem with seeg is that extracting the two D coordinates of each electrodes to overlay a colored dot or time series means that it will be plotted “over” the brain surface, and we therefore loose the depth visualization.

I would therefore like to know whether there is a solution whereby I can set the color of a set of channels. For example, here modify the color from whitish to blue for example:

Is there any way to achieve that?

Thanks in advance for the help :slight_smile:

Kind regards,

Alex