# \[MNE help\] Getting electrode positions from	DigMontage

**URL:** <https://mne.discourse.group/t/mne-help-getting-electrode-positions-from-digmontage/2191>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [May 20, 2020, 4:56am UTC](https://mne.discourse.group/t/mne-help-getting-electrode-positions-from-digmontage/2191 "2020-05-20T04:56:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [May 20, 2020, 4:56am UTC](https://mne.discourse.group/t/mne-help-getting-electrode-positions-from-digmontage/2191/1 "2020-05-20T04:56:54Z")

</div>

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](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200520/b517015d/attachment.html)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [May 20, 2020, 12:46pm UTC](https://mne.discourse.group/t/mne-help-getting-electrode-positions-from-digmontage/2191/2 "2020-05-20T12:46:55Z")

</div>

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
