Skip to content
Open
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
1 change: 1 addition & 0 deletions doc/changes/dev/13969.newfeature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add ``mask_label_params`` parameter to :func:`~mne.viz.plot_topomap` and :func:`~mne.viz.plot_evoked_topomap` to allow for customisation of masked channel labels, by `Carina Forster`_.
5 changes: 5 additions & 0 deletions mne/cov.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ def plot_topomap(
show_names=False,
mask=None,
mask_params=None,
mask_label_params=None,
contours=6,
outlines="head",
sphere=None,
Expand Down Expand Up @@ -362,6 +363,9 @@ def plot_topomap(
%(show_names_topomap)s
%(mask_topomap)s
%(mask_params_topomap)s
%(mask_label_params_topomap)s

.. versionadded:: 1.13
%(contours_topomap)s
%(outlines_topomap)s
%(sphere_topomap_auto)s
Expand Down Expand Up @@ -435,6 +439,7 @@ def plot_topomap(
show_names=show_names,
mask=mask,
mask_params=mask_params,
mask_label_params=mask_label_params,
outlines=outlines,
contours=contours,
image_interp=image_interp,
Expand Down
10 changes: 10 additions & 0 deletions mne/decoding/csp.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ def plot_patterns(
show_names=False,
mask=None,
mask_params=None,
mask_label_params=None,
contours=6,
outlines="head",
sphere=None,
Expand Down Expand Up @@ -409,6 +410,9 @@ def plot_patterns(
%(show_names_topomap)s
%(mask_patterns_topomap)s
%(mask_params_topomap)s
%(mask_label_params_topomap)s

.. versionadded:: 1.13
%(contours_topomap)s
%(outlines_topomap)s
%(sphere_topomap_auto)s
Expand Down Expand Up @@ -453,6 +457,7 @@ def plot_patterns(
show_names=show_names,
mask=mask,
mask_params=mask_params,
mask_label_params=mask_label_params,
contours=contours,
outlines=outlines,
sphere=sphere,
Expand Down Expand Up @@ -487,6 +492,7 @@ def plot_filters(
show_names=False,
mask=None,
mask_params=None,
mask_label_params=None,
contours=6,
outlines="head",
sphere=None,
Expand Down Expand Up @@ -526,6 +532,9 @@ def plot_filters(
%(show_names_topomap)s
%(mask_patterns_topomap)s
%(mask_params_topomap)s
%(mask_label_params_topomap)s

.. versionadded:: 1.13
%(contours_topomap)s
%(outlines_topomap)s
%(sphere_topomap_auto)s
Expand Down Expand Up @@ -570,6 +579,7 @@ def plot_filters(
show_names=show_names,
mask=mask,
mask_params=mask_params,
mask_label_params=mask_label_params,
contours=contours,
outlines=outlines,
sphere=sphere,
Expand Down
12 changes: 12 additions & 0 deletions mne/decoding/spatial_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def _plot_model(
show_names=False,
mask=None,
mask_params=None,
mask_label_params=None,
contours=6,
outlines="head",
sphere=None,
Expand Down Expand Up @@ -63,6 +64,7 @@ def _plot_model(
show_names=show_names,
mask=mask,
mask_params=mask_params,
mask_label_params=mask_label_params,
contours=contours,
outlines=outlines,
sphere=sphere,
Expand Down Expand Up @@ -394,6 +396,7 @@ def plot_filters(
show_names=False,
mask=None,
mask_params=None,
mask_label_params=None,
contours=6,
outlines="head",
sphere=None,
Expand Down Expand Up @@ -433,6 +436,9 @@ def plot_filters(
%(show_names_topomap)s
%(mask_evoked_topomap)s
%(mask_params_topomap)s
%(mask_label_params_topomap)s

.. versionadded:: 1.13
%(contours_topomap)s
%(outlines_topomap)s
%(sphere_topomap_auto)s
Expand Down Expand Up @@ -469,6 +475,7 @@ def plot_filters(
show_names=show_names,
mask=mask,
mask_params=mask_params,
mask_label_params=mask_label_params,
contours=contours,
outlines=outlines,
sphere=sphere,
Expand Down Expand Up @@ -503,6 +510,7 @@ def plot_patterns(
show_names=False,
mask=None,
mask_params=None,
mask_label_params=None,
contours=6,
outlines="head",
sphere=None,
Expand Down Expand Up @@ -542,6 +550,9 @@ def plot_patterns(
%(show_names_topomap)s
%(mask_evoked_topomap)s
%(mask_params_topomap)s
%(mask_label_params_topomap)s

.. versionadded:: 1.13
%(contours_topomap)s
%(outlines_topomap)s
%(sphere_topomap_auto)s
Expand Down Expand Up @@ -578,6 +589,7 @@ def plot_patterns(
show_names=show_names,
mask=mask,
mask_params=mask_params,
mask_label_params=mask_label_params,
contours=contours,
outlines=outlines,
sphere=sphere,
Expand Down
4 changes: 4 additions & 0 deletions mne/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@
markeredgewidth=1,
markersize=4,
),
mask_label_params=dict(
fontsize="medium", # respects theme
fontweight="bold",
),
coreg=dict(
mri_fid_opacity=1.0,
dig_fid_opacity=1.0,
Expand Down
7 changes: 7 additions & 0 deletions mne/evoked.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ def plot_topomap(
show_names=False,
mask=None,
mask_params=None,
mask_label_params=None,
contours=6,
outlines="head",
sphere=None,
Expand Down Expand Up @@ -697,6 +698,7 @@ def plot_topomap(
show_names=show_names,
mask=mask,
mask_params=mask_params,
mask_label_params=mask_label_params,
outlines=outlines,
contours=contours,
image_interp=image_interp,
Expand Down Expand Up @@ -804,6 +806,7 @@ def animate_topomap(
show_names=False,
mask=None,
mask_params=None,
mask_label_params=None,
contours=6,
outlines="head",
sphere=None,
Expand Down Expand Up @@ -848,6 +851,9 @@ def animate_topomap(
%(show_names_topomap)s
%(mask_evoked_topomap)s
%(mask_params_topomap)s
%(mask_label_params_topomap)s

.. versionadded:: 1.13
%(contours_topomap)s
%(outlines_topomap)s
%(sphere_topomap_auto)s
Expand Down Expand Up @@ -917,6 +923,7 @@ def animate_topomap(
show_names=show_names,
mask=mask,
mask_params=mask_params,
mask_label_params=mask_label_params,
contours=contours,
outlines=outlines,
sphere=sphere,
Expand Down
2 changes: 2 additions & 0 deletions mne/preprocessing/_regress.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ def plot(
show_names=False,
mask=None,
mask_params=None,
mask_label_params=None,
contours=6,
outlines="head",
sphere=None,
Expand All @@ -295,6 +296,7 @@ def plot(
show_names=show_names,
mask=mask,
mask_params=mask_params,
mask_label_params=mask_label_params,
contours=contours,
outlines=outlines,
sphere=sphere,
Expand Down
9 changes: 9 additions & 0 deletions mne/time_frequency/spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def plot_psd_topomap(
show_names=False,
mask=None,
mask_params=None,
mask_label_params=None,
contours=0,
outlines="head",
sphere=None,
Expand Down Expand Up @@ -249,6 +250,9 @@ def plot_psd_topomap(
%(show_names_topomap)s
%(mask_evoked_topomap)s
%(mask_params_topomap)s
%(mask_label_params_topomap)s

.. versionadded:: 1.13
%(contours_topomap)s
%(outlines_topomap)s
%(sphere_topomap_auto)s
Expand Down Expand Up @@ -789,6 +793,7 @@ def plot_topomap(
show_names=False,
mask=None,
mask_params=None,
mask_label_params=None,
contours=6,
outlines="head",
sphere=None,
Expand Down Expand Up @@ -819,6 +824,9 @@ def plot_topomap(
%(show_names_topomap)s
%(mask_evoked_topomap)s
%(mask_params_topomap)s
%(mask_label_params_topomap)s

.. versionadded:: 1.13
%(contours_topomap)s
%(outlines_topomap)s
%(sphere_topomap_auto)s
Expand Down Expand Up @@ -881,6 +889,7 @@ def plot_topomap(
names=names,
mask=mask,
mask_params=mask_params,
mask_label_params=mask_label_params,
contours=contours,
outlines=outlines,
sphere=sphere,
Expand Down
4 changes: 4 additions & 0 deletions mne/time_frequency/tfr.py
Original file line number Diff line number Diff line change
Expand Up @@ -2613,6 +2613,7 @@ def plot_topomap(
show_names=False,
mask=None,
mask_params=None,
mask_label_params=None,
contours=6,
outlines="head",
sphere=None,
Expand Down Expand Up @@ -2643,6 +2644,7 @@ def plot_topomap(
show_names=show_names,
mask=mask,
mask_params=mask_params,
mask_label_params=mask_label_params,
contours=contours,
outlines=outlines,
sphere=sphere,
Expand Down Expand Up @@ -3589,6 +3591,7 @@ def plot_topomap(
show_names=False,
mask=None,
mask_params=None,
mask_label_params=None,
contours=6,
outlines="head",
sphere=None,
Expand Down Expand Up @@ -3619,6 +3622,7 @@ def plot_topomap(
show_names=show_names,
mask=mask,
mask_params=mask_params,
mask_label_params=mask_label_params,
contours=contours,
outlines=outlines,
sphere=sphere,
Expand Down
7 changes: 7 additions & 0 deletions mne/utils/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2572,6 +2572,13 @@ def _reflow_param_docstring(docstring, has_first_line=True, width=75):
example=" (useful for, e.g. marking which channels at which times a "
"statistical test of the data reaches significance)",
)
docdict["mask_label_params_topomap"] = """
mask_label_params : dict | None
Additional plotting parameters for significant sensor labels.
Default (None) equals::

dict(fontsize='medium', fontweight='bold')
"""
docdict["mask_params_topomap"] = """
mask_params : dict | None
Additional plotting parameters for plotting significant sensors.
Expand Down
Loading
Loading