Save a set of viewsΒΆ

Save some views in png files.

from surfer import Brain

print(__doc__)

sub = 'fsaverage'
hemi = 'lh'
surf = 'inflated'

brain = Brain(sub, hemi, surf)

save 1 image

brain.show_view('lat')
brain.save_image("%s_lat.png" % sub)

save some images

brain.save_imageset(sub, ['med', 'lat', 'ros', 'caud'], 'jpg')

Total running time of the script: ( 0 minutes 0.000 seconds)

Gallery generated by Sphinx-Gallery