Commit 8fc9a124 authored by aestrivex's avatar aestrivex

allows X coordinate offset to be disabled

parent 7faeabcd
......@@ -317,6 +317,10 @@ class Brain(object):
views : list | str
views to use
disable_offset : bool
If True, disables alignment of origin with medial wall, instead
make no change to surface coordinates. Useful to overlay additional
visualizations (i.e. subcortical) onto same mayavi figure.
show_toolbar : bool
If True, toolbars will be shown for each view.
offscreen : bool
......@@ -333,8 +337,8 @@ class Brain(object):
def __init__(self, subject_id, hemi, surf, curv=True, title=None,
cortex="classic", size=800, background="black",
foreground="white", figure=None, subjects_dir=None,
views=['lat'], show_toolbar=False, offscreen=False,
views=['lat'], disable_offset=False, show_toolbar=False,
offscreen=False, config_opts=None):
# Keep backwards compatability
if config_opts is not None:
......@@ -370,7 +374,7 @@ class Brain(object):
n_row = len(views)
# load geometry for one or both hemispheres as necessary
offset = None if hemi != 'both' else 0.0
offset = None if (disable_offset or hemi != 'both') else 0.0
self.geo = dict()
if hemi in ['split', 'both']:
geo_hemis = ['lh', 'rh']
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment