@@ -317,6 +317,10 @@ 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
324
show_toolbar : bool
321
325
If True, toolbars will be shown for each view.
322
326
offscreen : bool
@@ -333,8 +337,8 @@ class Brain(object):
333
337
def __init__ (self , subject_id , hemi , surf , curv = True , title = None ,
334
338
cortex = "classic" , size = 800 , background = "black" ,
335
339
foreground = "white" , figure = None , subjects_dir = None ,
336
- views = ['lat' ], show_toolbar = False , offscreen = False ,
337
- config_opts = None ):
340
+ views = ['lat' ], disable_offset = False , show_toolbar = False ,
341
+ offscreen = False , config_opts = None ):
338
342
339
343
# Keep backwards compatability
340
344
if config_opts is not None :
@@ -370,7 +374,7 @@ def __init__(self, subject_id, hemi, surf, curv=True, title=None,
370
374
n_row = len (views )
371
375
372
376
# load geometry for one or both hemispheres as necessary
373
- offset = None if hemi != 'both' else 0.0
377
+ offset = None if ( disable_offset or hemi != 'both' ) else 0.0
374
378
self .geo = dict ()
375
379
if hemi in ['split' , 'both' ]:
376
380
geo_hemis = ['lh' , 'rh' ]
0 commit comments