Commit 418c9d10 authored by Eric Larson's avatar Eric Larson

ENH: Refactored

parent 43290f32
......@@ -17,7 +17,7 @@ from surfer.io import read_stc
define subject, surface and hemisphere(s) to plot
"""
subject_id, surface = 'fsaverage', 'inflated'
hemi = 'both'
hemi = 'split'
"""
create Brain object for visualization
......
......@@ -18,16 +18,12 @@ bgcolor = 'w'
brain = Brain(sub, hemi, surf, config_opts={'background': bgcolor})
###############################################################################
# Save a set of images as a montage
brain.save_montage('/tmp/fsaverage_h_montage.png',
['l', 'v', 'm'], orientation='v')
brain.close()
# Get a set of images as a montage, note the data could be saved if desired
image = brain.save_montage(None, ['l', 'v', 'm'], orientation='v')
###############################################################################
# View created image
import Image
import pylab as pl
image = Image.open('/tmp/fsaverage_h_montage.png')
fig = pl.figure(figsize=(5, 3), facecolor=bgcolor)
ax = pl.axes(frameon=False)
ax.imshow(image, origin='lower')
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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