Skip to content

Commit e5d78c0

Browse files
authored
Mention Volume, Volume2D, and VolumeRGB in mapper plotting functions
1 parent 90c1c21 commit e5d78c0

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

voxelwise_tutorials/viz.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,13 @@ def plot_flatmap_from_mapper(voxels, mapper_file, ax=None, alpha=0.7,
7373
with_colorbar=True,
7474
colorbar_location=(.4, .9, .2, .05)):
7575
"""Plot a flatmap from a mapper file, with 1D data.
76+
77+
This function is equivalent to the pycortex functions:
78+
cortex.quickshow(cortex.Volume(voxels, ...), ...)
7679
7780
Note that this function does not have the full capability of pycortex,
78-
(like cortex.quickshow) since it is based on flatmap mappers and not on the
79-
original brain surface of the subject.
81+
since it is based on flatmap mappers and not on the original brain
82+
surface of the subject.
8083
8184
Parameters
8285
----------
@@ -222,9 +225,12 @@ def plot_2d_flatmap_from_mapper(voxels_1, voxels_2, mapper_file, ax=None,
222225
colorbar_location=(.45, .85, .1, .1)):
223226
"""Plot a flatmap from a mapper file, with 2D data.
224227
228+
This function is equivalent to the pycortex functions:
229+
cortex.quickshow(cortex.Volume2D(voxels_1, voxels_2, ...), ...)
230+
225231
Note that this function does not have the full capability of pycortex,
226-
(like cortex.quickshow) since it is based on flatmap mappers and not on the
227-
original brain surface of the subject.
232+
since it is based on flatmap mappers and not on the original brain
233+
surface of the subject.
228234
229235
Parameters
230236
----------
@@ -371,9 +377,12 @@ def plot_3d_flatmap_from_mapper(voxels_1, voxels_2, voxels_3, mapper_file,
371377
with_curvature=True, with_rois=True):
372378
"""Plot a flatmap from a mapper file, with 3D data.
373379
380+
This function is equivalent to the pycortex functions:
381+
cortex.quickshow(cortex.VolumeRGB(voxels_1, voxels_2, voxels_3, ...), ...)
382+
374383
Note that this function does not have the full capability of pycortex,
375-
(like cortex.quickshow) since it is based on flatmap mappers and not on the
376-
original brain surface of the subject.
384+
since it is based on flatmap mappers and not on the original brain
385+
surface of the subject.
377386
378387
Parameters
379388
----------

0 commit comments

Comments
 (0)