@@ -317,6 +317,9 @@ class Brain(object):
317
317
variable.
318
318
views : list | str
319
319
views to use
320
+ offset : bool
321
+ If True, aligs origin with medial wall. Useful for viewing inflated
322
+ surface where hemispheres typically overlap (Default: True)
320
323
show_toolbar : bool
321
324
If True, toolbars will be shown for each view.
322
325
offscreen : bool
@@ -333,8 +336,8 @@ class Brain(object):
333
336
def __init__ (self , subject_id , hemi , surf , curv = True , title = None ,
334
337
cortex = "classic" , size = 800 , background = "black" ,
335
338
foreground = "white" , figure = None , subjects_dir = None ,
336
- views = ['lat' ], show_toolbar = False , offscreen = False ,
337
- config_opts = None ):
339
+ views = ['lat' ], offset = True , show_toolbar = False ,
340
+ offscreen = False , config_opts = None ):
338
341
339
342
# Keep backwards compatability
340
343
if config_opts is not None :
@@ -370,7 +373,7 @@ def __init__(self, subject_id, hemi, surf, curv=True, title=None,
370
373
n_row = len (views )
371
374
372
375
# load geometry for one or both hemispheres as necessary
373
- offset = None if hemi != 'both' else 0.0
376
+ offset = None if ( not offset or hemi != 'both' ) else 0.0
374
377
self .geo = dict ()
375
378
if hemi in ['split' , 'both' ]:
376
379
geo_hemis = ['lh' , 'rh' ]
0 commit comments