@@ -20,42 +20,42 @@ def get_topomaps(
2020 Parameters
2121 ----------
2222 ica : ICA
23- MNE `~mne.preprocessing.ICA` decomposition.
23+ MNE `~mne.preprocessing.ICA` decomposition.
2424 picks : int | list of int | slice | None
25- Indices of the independent components (ICs) to select.
26- If an integer, represents the index of the IC to pick.
27- Multiple ICs can be selected using a list of int or a slice.
28- The indices are 0-indexed, so ``picks=1`` will pick the second IC: ``ICA001``.
29- ``None`` (default) will pick all independent components in the order fitted.
25+ Indices of the independent components (ICs) to select.
26+ If an integer, represents the index of the IC to pick.
27+ Multiple ICs can be selected using a list of int or a slice.
28+ The indices are 0-indexed, so ``picks=1`` will pick the second IC: ``ICA001``.
29+ ``None`` (default) will pick all independent components in the order fitted.
3030 res : int
31- The resolution of the square topographic map (in pixels).
31+ The resolution of the square topographic map (in pixels).
3232 image_interp : str
33- The image interpolation to be used. All matplotlib options are
34- accepted.
33+ The image interpolation to be used. All matplotlib options are
34+ accepted.
3535 border : float | 'mean'
36- Value to extrapolate to on the topomap borders. If ``'mean'`` (default),
37- then each extrapolated point has the average value of its neighbours.
36+ Value to extrapolate to on the topomap borders. If ``'mean'`` (default),
37+ then each extrapolated point has the average value of its neighbours.
3838 extrapolate : str
39- Options:
39+ Options:
4040
41- - ``'box'``
42- Extrapolate to four points placed to form a square encompassing all
43- data points, where each side of the square is three times the range
44- of the data in the respective dimension.
45- - ``'local'`` (default for MEG sensors)
46- Extrapolate only to nearby points (approximately to points closer than
47- median inter-electrode distance). This will also set the
48- mask to be polygonal based on the convex hull of the sensors.
49- - ``'head'`` (default for non-MEG sensors)
50- Extrapolate out to the edges of the clipping circle. This will be on
51- the head circle when the sensors are contained within the head circle,
52- but it can extend beyond the head when sensors are plotted outside
53- the head circle.
41+ - ``'box'``
42+ Extrapolate to four points placed to form a square encompassing all
43+ data points, where each side of the square is three times the range
44+ of the data in the respective dimension.
45+ - ``'local'`` (default for MEG sensors)
46+ Extrapolate only to nearby points (approximately to points closer than
47+ median inter-electrode distance). This will also set the
48+ mask to be polygonal based on the convex hull of the sensors.
49+ - ``'head'`` (default for non-MEG sensors)
50+ Extrapolate out to the edges of the clipping circle. This will be on
51+ the head circle when the sensors are contained within the head circle,
52+ but it can extend beyond the head when sensors are plotted outside
53+ the head circle.
5454
5555 Returns
5656 -------
5757 topomaps : dict of array of shape (n_components, n_pixels, n_pixels)
58- Dictionary of ICs topographic maps for each channel type.
58+ Dictionary of ICs topographic maps for each channel type.
5959 """
6060
6161@fill_doc
@@ -72,37 +72,37 @@ def _get_topomap_array(
7272 Parameters
7373 ----------
7474 data : array of shape (n_channels,)
75- The data points used to generate the topographic map.
75+ The data points used to generate the topographic map.
7676 info : Info
77- Instance of `mne.Info` with the montage associated with the ``(n_channels,)``
78- points.
77+ Instance of `mne.Info` with the montage associated with the ``(n_channels,)``
78+ points.
7979 res : int
80- The resolution of the square topographic map (in pixels).
80+ The resolution of the square topographic map (in pixels).
8181 image_interp : str
82- The image interpolation to be used. All matplotlib options are
83- accepted.
82+ The image interpolation to be used. All matplotlib options are
83+ accepted.
8484 border : float | 'mean'
85- Value to extrapolate to on the topomap borders. If ``'mean'`` (default),
86- then each extrapolated point has the average value of its neighbours.
85+ Value to extrapolate to on the topomap borders. If ``'mean'`` (default),
86+ then each extrapolated point has the average value of its neighbours.
8787 extrapolate : str
88- Options:
88+ Options:
8989
90- - ``'box'``
91- Extrapolate to four points placed to form a square encompassing all
92- data points, where each side of the square is three times the range
93- of the data in the respective dimension.
94- - ``'local'`` (default for MEG sensors)
95- Extrapolate only to nearby points (approximately to points closer than
96- median inter-electrode distance). This will also set the
97- mask to be polygonal based on the convex hull of the sensors.
98- - ``'head'`` (default for non-MEG sensors)
99- Extrapolate out to the edges of the clipping circle. This will be on
100- the head circle when the sensors are contained within the head circle,
101- but it can extend beyond the head when sensors are plotted outside
102- the head circle.
90+ - ``'box'``
91+ Extrapolate to four points placed to form a square encompassing all
92+ data points, where each side of the square is three times the range
93+ of the data in the respective dimension.
94+ - ``'local'`` (default for MEG sensors)
95+ Extrapolate only to nearby points (approximately to points closer than
96+ median inter-electrode distance). This will also set the
97+ mask to be polygonal based on the convex hull of the sensors.
98+ - ``'head'`` (default for non-MEG sensors)
99+ Extrapolate out to the edges of the clipping circle. This will be on
100+ the head circle when the sensors are contained within the head circle,
101+ but it can extend beyond the head when sensors are plotted outside
102+ the head circle.
103103
104104 Returns
105105 -------
106106 topomap : array of shape (n_pixels, n_pixels)
107- Topographic map array.
107+ Topographic map array.
108108 """
0 commit comments