Skip to content

Commit 14b1099

Browse files
committed
change disable_offset=False to offset=True
1 parent e0ff55c commit 14b1099

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

surfer/viz.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,9 @@ class Brain(object):
317317
variable.
318318
views : list | str
319319
views to use
320-
disable_offset : bool
321-
If True, disables alignment of origin with medial wall, instead
322-
make no change to surface coordinates. Useful to overlay additional
323-
visualizations (i.e. subcortical) onto same mayavi figure.
320+
offset : bool
321+
If True, aligs origin with medial wall. Useful for viewing inflated
322+
surface where hemispheres typically overlap (Default: True)
324323
show_toolbar : bool
325324
If True, toolbars will be shown for each view.
326325
offscreen : bool
@@ -337,7 +336,7 @@ class Brain(object):
337336
def __init__(self, subject_id, hemi, surf, curv=True, title=None,
338337
cortex="classic", size=800, background="black",
339338
foreground="white", figure=None, subjects_dir=None,
340-
views=['lat'], disable_offset=False, show_toolbar=False,
339+
views=['lat'], offset=True, show_toolbar=False,
341340
offscreen=False, config_opts=None):
342341

343342
# Keep backwards compatability
@@ -374,7 +373,7 @@ def __init__(self, subject_id, hemi, surf, curv=True, title=None,
374373
n_row = len(views)
375374

376375
# load geometry for one or both hemispheres as necessary
377-
offset = None if (disable_offset or hemi != 'both') else 0.0
376+
offset = None if (not offset or hemi != 'both') else 0.0
378377
self.geo = dict()
379378
if hemi in ['split', 'both']:
380379
geo_hemis = ['lh', 'rh']

0 commit comments

Comments
 (0)