Skip to content

Commit 0b374c1

Browse files
authored
MRG, DOC: Fix plot_evoked_joint exclude parameter default inconsistency (#13391)
1 parent 0474b49 commit 0b374c1

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

doc/changes/dev/13391.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix :func:`~mne.viz.plot_evoked_joint` docstring to correctly document ``exclude`` parameter default as ``'bads'`` instead of ``None``, by :newcontrib:`Tharupahan Jayawardana`.

doc/changes/names.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@
307307
.. _T. Wang: https://github.com/twang5
308308
.. _Tal Linzen: https://tallinzen.net/
309309
.. _Teon Brooks: https://github.com/teonbrooks
310+
.. _Tharupahan Jayawardana: https://github.com/tharu-jwd
310311
.. _Thomas Binns: https://github.com/tsbinns
311312
.. _Thomas Hartmann: https://github.com/thht
312313
.. _Thomas Radman: https://github.com/tradman

mne/viz/evoked.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1799,7 +1799,7 @@ def plot_evoked_joint(
17991799
times="peaks",
18001800
title="",
18011801
picks=None,
1802-
exclude=None,
1802+
exclude="bads",
18031803
show=True,
18041804
ts_args=None,
18051805
topomap_args=None,
@@ -1826,9 +1826,9 @@ def plot_evoked_joint(
18261826
axes are passed make sure to set ``title=None``, otherwise some of your
18271827
axes may be removed during placement of the title axis.
18281828
%(picks_all)s
1829-
exclude : None | list of str | 'bads'
1829+
exclude : list of str | 'bads'
18301830
Channels names to exclude from being shown. If ``'bads'``, the
1831-
bad channels are excluded. Defaults to ``None``.
1831+
bad channels are excluded. Defaults to ``'bads'``.
18321832
show : bool
18331833
Show figure if ``True``. Defaults to ``True``.
18341834
ts_args : None | dict

0 commit comments

Comments
 (0)