Skip to content

Commit

Permalink
Update plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
tsbinns committed Jun 26, 2024
1 parent ad5db63 commit ee1c109
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions mne_connectivity/decoding/decomposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#
# License: BSD (3-clause)

from copy import deepcopy
from typing import Optional

import numpy as np
Expand All @@ -16,6 +15,7 @@
from mne.fixes import BaseEstimator
from mne.time_frequency import csd_array_fourier, csd_array_morlet, csd_array_multitaper
from mne.utils import _check_option, _validate_type
from mne.viz.utils import plt_show

from ..spectral.epochs_multivariate import _CaCohEst, _check_rank_input, _MICEst
from ..utils import _check_multivariate_indices, fill_doc
Expand Down Expand Up @@ -727,8 +727,7 @@ def _plot_filters_patterns(
figs = []
for group_idx, group_name in zip([0, 1], ["Seeds", "Targets"]):
# create info for seeds/targets
group_info = deepcopy(info)
group_info = pick_info(group_info, self.indices[group_idx], copy=False)
group_info = pick_info(info, self.indices[group_idx])
with group_info._unlock():
group_info["sfreq"] = 1.0 # 1 component per time point
# create Evoked object
Expand Down Expand Up @@ -768,7 +767,6 @@ def _plot_filters_patterns(
)
)
figs[-1].suptitle(group_name) # differentiate seeds from targets
if show:
figs[-1].show()
plt_show(show=show, fig=figs[-1])

return figs

0 comments on commit ee1c109

Please sign in to comment.