[MNE help] Getting electrode positions from DigMontage

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200520/b517015d/attachment.html

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