[Mne_analysis] problem with plotting the positions of a selection of magnetometers

Alexandre Gramfort alexandre.gramfort at inria.fr
Tue Apr 3 15:58:46 EDT 2018
Search archives:

hi Rasha,

just to be sure I understand what you want to do. You want to see the
channels
present in a selection like we show in red bad channels in
evoked.plot_sensors()
or do you want to plot a topography restricted to a selection?

ALex


On Tue, Apr 3, 2018 at 5:45 PM, Rasha Hyder <rasha.hyder12 at gmail.com> wrote:

> Dear list,
> I'm  having problems with plotting the positions of a selection of left
> magnetometers. In the following I describe what I'm doing in steps to make
> it easier to follow up with me (my apologies in advance if you find it too
> long):
>
> 1. I selected the: 'Left-temporal', 'Left-parietal' and 'Left-frontal'
> magnetometers:
>
>
> *evoked = mne.read_evokeds()*
>
>
> *left_chs= mne.read_selection(name= ['Left-temporal', 'Left-parietal',
>                                     'Left-frontal'], info= evoked.info
> <http://evoked.info>)my_evo= evoked.pick_types(meg='mag', selection=
> left_chs)*
>
> 2. Then I tried to get the layout of only selected magnetometers using:
>
> *pos = mne.channels.find_layout(my_evo.info <http://my_evo.info>)*
>
> but this returned the layout of all 102 magnetometers although the
> documentations says it chooses a layout based on the channels in the info
> ‘chs’ field!
>
> To overcome this issue I had to use this:
>
> *pos = mne.channels.find_layout(my_evo.info <http://my_evo.info>, exclude=
> excluded_chs)*
>
> where excluded_chs contains all magnetometers which are not in my selected
> list *(left_chs)*
> This worked and I checked the names of channels in *pos.names.*
>
> 3. when I tried to plot the positions of the selected sensors using:
>
> *pos.plot() * and *mne.viz.plot_layout(pos) *
>
> the plots showed the positions of the sensors spanning the whole head
> scheme (please see attached figure_1).
>
> 4. I had the same problem also when plotting the topography of my own
> defined evoked object *my_evo *(attached as figure_2):
>
>
>
> *my_evo.plot_topomap()*
> I would appreciate any suggestion to solve this problem.
>
> Best regards
> Rasha
>
>
>
>
>
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it
> is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180403/4be98d87/attachment.html 


More information about the Mne_analysis mailing list