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 plotting sensor connectivity in 2D #97

Open
hoechenberger opened this issue May 28, 2022 · 5 comments
Open

Allow plotting sensor connectivity in 2D #97

hoechenberger opened this issue May 28, 2022 · 5 comments

Comments

@hoechenberger
Copy link
Member

Currently, plot_sensors_connectivity() produces a 3D scene.

It would be great to have a visualization in 2D space too. With the new machinery in MNE-Python that powers plot_ch_adjacency(), this should be relatively easy to do / give some inspiration.

The plotting function would then return a Matplotlib Figure instead of a PyVista scene.

WDYT?

@ctrltz
Copy link

ctrltz commented Jun 23, 2022

image

Just a suggestion - it could also be cool to have so called head-in-head plots (fig. 5 of this paper, for example), seems possible with mne.viz.iter_topography

@hoechenberger
Copy link
Member Author

I have to admit I don't understand the purpose of this head-in-head representation... what does it tell us?

@drammock
Copy link
Member

I think each mini-head is connectivity based on a "seed" in that location. This is (somewhat redundantly) illustrated by the little black dot in each mini-head.

@hoechenberger
Copy link
Member Author

hoechenberger commented Jun 23, 2022

So it shows connectivity "strength", e.g. in a simple case where each edge has the same weight, it would be 1/number of edges between the starting node and the "target node"?

@ctrltz
Copy link

ctrltz commented Jun 23, 2022

Yes, the idea is to display the whole NxN connectivity matrix at once as @drammock mentioned, black dot indeed might be not super-obvious when taken out of the context.

It has an advantage over graph-like display of important edges in case of many significant connections that might overlap and make the interpretation a little bit harder.

@hoechenberger you're right, all topomaps would be of the same color. And if, for example, connectivity between surroundings of C3 and C4 is very strong, then the topomap located at C3 would display high values around C4, and vice versa.

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

No branches or pull requests

3 participants