[Mne_analysis] [MNE help] Getting electrode positions from DigMontage

Alexandre Gramfort alexandre.gramfort at inria.fr
Wed May 20 08:46:55 EDT 2020
Search archives:

        External Email - Use Caution        

hi,

i don't think we have a public function to do this but you can use:

m = mne.channels.make_standard_montage('biosemi32')
m._get_ch_pos()

note that this is using a private function

Alex

On Wed, May 20, 2020 at 6:58 AM Matthew Ma <khma at link.cuhk.edu.hk> wrote:
>
>         External Email - Use Caution
>
> Dear MNE users,
>
> I have been using mne.viz.plot_topomap to plot topography with the pos argument coming from read_montage which was noticed to be deprecated in v0.20. The following is an example:
>
> pos = mne.channels.read_montage('biosemi32').get_pos2d()[0:32,0:2]
> plot_topomap(x, pos)
>
> I have learnt that we shall use make_standard_montage('biosemi32') now but I havent found a function to get the corresponding electrode positions from the returned DigMontage instance to serve as the input of mne.viz.plot_topomap. Does anyone have ideas?
>
> Thank you so much.
> Best regards,
> Matthew
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis



More information about the Mne_analysis mailing list