Skip to content

ENH: Add mask_label_params parameter to plot_topomap#13969

Merged
drammock merged 8 commits into
mne-tools:mainfrom
CarinaFo:topoplot_name_param
Jul 22, 2026
Merged

ENH: Add mask_label_params parameter to plot_topomap#13969
drammock merged 8 commits into
mne-tools:mainfrom
CarinaFo:topoplot_name_param

Conversation

@CarinaFo

@CarinaFo CarinaFo commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

What does this implement/fix?

Adds a new mask_label_params parameter to plot_topomap, allowing users to control the style of channel name labels
for masked (e.g. statistically significant) sensors

Currently, masked and unmasked sensor labels are styled identical when show_names=True and mask is provided

Closes #13474
follow up on #13598 (credit to @TaniaRocks for the initial approach)

Example

evoked.plot_topomap(
    mask=mask,
    show_names=True,
    mask_label_params=dict(fontsize='medium', color='green', fontweight='bold')
)

ToDo

  • write test for mask_label_params

@CarinaFo
CarinaFo marked this pull request as ready for review July 4, 2026 07:28

@drammock drammock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending the suggestions!

Comment thread mne/viz/tests/test_topomap.py Outdated
Comment thread mne/viz/tests/test_topomap.py Outdated
Comment thread mne/viz/topomap.py Outdated
Co-authored-by: Daniel McCloy <dan@mccloy.info>
@drammock
drammock enabled auto-merge (squash) July 22, 2026 22:44
@drammock
drammock merged commit 9ead159 into mne-tools:main Jul 22, 2026
29 checks passed
PragnyaKhandelwal pushed a commit to PragnyaKhandelwal/mne-python that referenced this pull request Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

topomap mask should style sensor labels differently

2 participants