Skip to content

Commit

Permalink
MINOR: fix corrmap fig titles (mne-tools#4388)
Browse files Browse the repository at this point in the history
* fix corrmap fig label

* doc

* fix tutorial

* fix tutorial
  • Loading branch information
jona-sassenhagen authored and larsoner committed Jul 19, 2017
1 parent e2cb866 commit 6d56313
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions mne/preprocessing/ica.py
Original file line number Diff line number Diff line change
Expand Up @@ -2231,7 +2231,7 @@ def _find_max_corrs(all_maps, target, threshold):


def _plot_corrmap(data, subjs, indices, ch_type, ica, label, show, outlines,
layout, cmap, contours, template=True):
layout, cmap, contours, template=False):
"""Customize ica.plot_components for corrmap."""
if not template:
title = 'Detected components'
Expand Down Expand Up @@ -2297,8 +2297,8 @@ def corrmap(icas, template, threshold="auto", label=None, ch_type="eeg",
specific ICs across subjects.
The specific procedure consists of two iterations. In a first step, the
maps best correlating with the template are identified. In the step, the
analysis is repeated with the mean of the maps identified in the first
maps best correlating with the template are identified. In the next step,
the analysis is repeated with the mean of the maps identified in the first
stage.
Run with `plot` and `show` set to `True` and `label=False` to find
Expand Down
4 changes: 2 additions & 2 deletions tutorials/plot_artifacts_correction_ica.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@
# data sets instead.

# We'll start by simulating a group of subjects or runs from a subject
start, stop = [0, len(raw.times) - 1]
intervals = np.linspace(start, stop, 4, dtype=int)
start, stop = [0, raw.times[-1]]
intervals = np.linspace(start, stop, 4, dtype=np.float)
icas_from_other_data = list()
raw.pick_types(meg=True, eeg=False) # take only MEG channels
for ii, start in enumerate(intervals):
Expand Down

0 comments on commit 6d56313

Please sign in to comment.