Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ Mathieu Scheltienne <[email protected]> Mathieu Scheltienne <7389361
Mathieu Scheltienne <[email protected]> Mathieu Scheltienne <[email protected]>
Mathurin Massias <[email protected]> mathurinm <[email protected]>
Mathurin Massias <[email protected]> mathurinm <[email protected]>
Mats van Es <[email protected]> Mats <[email protected]
Mats van Es <[email protected]> Mats <[email protected]>
Matt Sanderson <[email protected]> monkeyman192 <[email protected]>
Matteo Anelli <[email protected]> Matteo Anelli <[email protected]>
Matteo Visconti di Oleggio Castello <[email protected]> Matteo Visconti dOC <[email protected]>
Expand Down
1 change: 1 addition & 0 deletions doc/changes/dev/13470.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix bug with :func:`mne.viz.plot_topomap` that caused unexpected channel name plotting when using a mask, by `Michael Straube`_.
7 changes: 2 additions & 5 deletions mne/viz/topomap.py
Original file line number Diff line number Diff line change
Expand Up @@ -1422,11 +1422,8 @@ def _plot_topomap(
if isinstance(outlines, dict):
_draw_outlines(axes, outlines)

if names is not None:
show_idx = np.arange(len(names)) if mask is None else np.where(mask)[0]
for ii, (_pos, _name) in enumerate(zip(pos, names)):
if ii not in show_idx:
continue
if names is not None and sensors:
for _pos, _name in zip(pos, names):
axes.text(
_pos[0],
_pos[1],
Expand Down
Loading