Skip to content

ENH: Add mask_label_params parameter to plot_topomap#13969

Draft
CarinaFo wants to merge 3 commits into
mne-tools:mainfrom
CarinaFo:topoplot_name_param
Draft

ENH: Add mask_label_params parameter to plot_topomap#13969
CarinaFo wants to merge 3 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

  • update plot_tfr_topomap
  • update plot_psds_topomap / BaseSpectrum.plot_topomap
  • update plot_regression_weights

Discuss

  • _topomap_animation

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

1 participant