mne-tools / mne-python

MNE: Magnetoencephalography (MEG) and Electroencephalography (EEG) in Python
https://mne.tools
BSD 3-Clause "New" or "Revised" License
2.66k stars 1.31k forks source link

ROI definition in picks - ENH suggestion #2268

Closed ImmanuelSamuel closed 6 years ago

ImmanuelSamuel commented 9 years ago

For the plot_topo functions it would be nice if the picks argument can take multiple channel groups Eg: picks = [[1,2,3],[4,5,6]]. The plots can be shown at the centroid of the channels within a group. This can reduce the need to plot all channels resulting in really small plots for data recorded with a high density channel system.

wmvanvliet commented 9 years ago

plot_topo uses a Layout object that defines the drawing position of the channels. The simplest way to achieve what you describe is to write your own layout file. Usually, you use the same recording setup over and over again, so investing an hour or so in creating your own custom layout is worth it.

If there is a pressing need to be able to do this in code, I suggest adding it to the make_eeg_layout or generate_2d_layout functions.

teonbrooks commented 9 years ago

maybe the Layout object can generate default ROI layouts for the sensor grid

jona-sassenhagen commented 9 years ago

@teonlamont remember the code for plotting ROIs I sent you some time ago?

teonbrooks commented 9 years ago

yeah, I have it around somewhere. my comment was inspired by you @jona-sassenhagen :)