Skip to content
Merged
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
4 changes: 3 additions & 1 deletion mne/viz/ica.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,10 @@ def _plot_ica_sources_evoked(evoked, picks, exclude, title, show, ica,

for exc_label, ii in zip(exclude_labels, picks):
color, style = label_props[ii]
# ensure traces of excluded components are plotted on top
zorder = 2 if exc_label is None else 10
lines.extend(ax.plot(times, evoked.data[ii].T, picker=True,
zorder=2, color=color, linestyle=style,
zorder=zorder, color=color, linestyle=style,
label=exc_label))
lines[-1].set_pickradius(3.)

Expand Down
3 changes: 1 addition & 2 deletions tutorials/preprocessing/40_artifact_correction_ica.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,7 @@
# `~mne.io.Raw` object around so we can apply the ICA solution to it
# later.

filt_raw = raw.copy()
filt_raw.load_data().filter(l_freq=1., h_freq=None)
filt_raw = raw.copy().load_data().filter(l_freq=1., h_freq=None)

# %%
# Fitting and plotting the ICA solution
Expand Down