You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add the possibility to provide custom color mapping for channels in raw.plot() #12658
Hello,
I think that it would be nice to have the possibility to have a custom color mapping control based on the provided channel names, because it doesn't seems to be possible so far. Please correct me if I am wrong.
Here is an example of a default raw.plot()
And for example I would like to plot every SFG channel into red, and MFG into green.
Describe your proposed implementation
One way would be to provide a dict in the color arg*, the key of the dict should be the channel name and the value should be the desired color.
One of the possible alternative would be to change colors for specific channel would be to change the ch_types of the desired ch_names. basically assigning SFG to EMG types, MFG to EEG and so on, but it's not really convenient.
seems like a reasonable feature request. Are you interested in implementing it yourself? As a purely aesthetic change it might be a bit before it reaches the top of our core devs' priority queues.
Hi @drammock , I would like to work on this feature. I’ll start looking into the implementation and open a PR once I have a working version. Please let me know if there are any suggestions before I begin. Thanks!
Activity
welcome commentedon Jun 11, 2024
Hello! 👋 Thanks for opening your first issue here! ❤️ We will try to get back to you soon. 🚴
drammock commentedon Jun 17, 2024
seems like a reasonable feature request. Are you interested in implementing it yourself? As a purely aesthetic change it might be a bit before it reaches the top of our core devs' priority queues.
HansujaB commentedon Mar 15, 2026
Hi @drammock , I would like to work on this feature. I’ll start looking into the implementation and open a PR once I have a working version. Please let me know if there are any suggestions before I begin. Thanks!
HansujaB commentedon Mar 18, 2026
Hi @drammock , I have opened a PR for this issue let me know if anything needs to be modified!