Skip to content

Commit edfe736

Browse files
committed
add kwargs for flexible mayavi window
1 parent cd1a722 commit edfe736

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

atlaselectrophysiology/rendering.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ def add_mesh(fig, obj_file, color=(1., 1., 1.), opacity=0.4):
3030
return mapper, actor
3131

3232

33-
def figure(grid=False):
33+
def figure(grid=False, **kwargs):
3434
"""
3535
Creates a mayavi figure with the brain atlas mesh
3636
:return: mayavi figure
3737
"""
38-
fig = mlab.figure(bgcolor=(1, 1, 1))
38+
fig = mlab.figure(bgcolor=(1, 1, 1), **kwargs)
3939
# engine = mlab.get_engine() # Returns the running mayavi engine.
4040
obj_file = Path(__file__).parent.joinpath("root.obj")
4141
mapper, actor = add_mesh(fig, obj_file)

0 commit comments

Comments
 (0)