@@ -317,10 +317,9 @@ class Brain(object):
317
317
variable.
318
318
views : list | str
319
319
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)
324
323
show_toolbar : bool
325
324
If True, toolbars will be shown for each view.
326
325
offscreen : bool
@@ -337,7 +336,7 @@ class Brain(object):
337
336
def __init__ (self , subject_id , hemi , surf , curv = True , title = None ,
338
337
cortex = "classic" , size = 800 , background = "black" ,
339
338
foreground = "white" , figure = None , subjects_dir = None ,
340
- views = ['lat' ], disable_offset = False , show_toolbar = False ,
339
+ views = ['lat' ], offset = True , show_toolbar = False ,
341
340
offscreen = False , config_opts = None ):
342
341
343
342
# Keep backwards compatability
@@ -374,7 +373,7 @@ def __init__(self, subject_id, hemi, surf, curv=True, title=None,
374
373
n_row = len (views )
375
374
376
375
# 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
378
377
self .geo = dict ()
379
378
if hemi in ['split' , 'both' ]:
380
379
geo_hemis = ['lh' , 'rh' ]
0 commit comments