From 70dcc4d65554b969a041a4ae47644877a3fb932d Mon Sep 17 00:00:00 2001 From: YadavAkhileshh Date: Sat, 7 Feb 2026 03:10:24 +0530 Subject: [PATCH] DOC: Fix type annotation for order parameter in Epochs.plot() --- mne/viz/epochs.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mne/viz/epochs.py b/mne/viz/epochs.py index c691915f132..b519ac5a321 100644 --- a/mne/viz/epochs.py +++ b/mne/viz/epochs.py @@ -800,8 +800,12 @@ def plot_epochs( The new equivalent is ``events=False``. %(event_color)s Defaults to ``None``. - order : array of str | None - Order in which to plot channel types. + order : array of int | None + Order in which to plot data. If the array is shorter than the number of + channels, only the given channels are plotted. If None (default), all + channels are plotted. If ``group_by`` is ``'position'`` or + ``'selection'``, the ``order`` parameter is used only for selecting the + channels to be plotted. .. versionadded:: 0.18.0 show : bool