Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to plot multiple node colors in mne_connectivity.viz.plot_connectivity_circle #245

Open
JohannesWiesner opened this issue Oct 21, 2024 · 2 comments

Comments

@JohannesWiesner
Copy link

If your issue is a usage question, please consider asking on the
MNE Forum instead of opening an issue.

Describe the problem

Would be nice if node_colors could also be multiple colors. This would be useful so you could e.g. plot two colors for the different brain hemispheres and a another layer of colors for different brain lobes.

Describe your solution

A clear and concise description of what you want to happen.

Describe possible alternatives

A clear and concise description of any alternative solutions or features you have considered.

Additional context

Add any other context or screenshots about the feature request here.

@larsoner
Copy link
Member

@JohannesWiesner to me this is the sort of thing that could hopefully be done to the figure after mne-connectivity creates it. At the end of the day we just produce a matplotlib figure with axes, collections, etc. Can you see if you can get what you need by accessing fig.axes[0].collections or similar to get the correct nodes, then setting properties like fill color or edge color, and/or plotting a second collection/scatter (or whatever we create under the hood!) to achieve the effect of interest? If it works I think it could make a cool example rather than new feature that we build into the plotting function.

@JohannesWiesner
Copy link
Author

Will try and report back :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants