Skip to content

Instantly share code, notes, and snippets.

@satra
Created July 9, 2013 20:21
Show Gist options
  • Select an option

  • Save satra/5960926 to your computer and use it in GitHub Desktop.

Select an option

Save satra/5960926 to your computer and use it in GitHub Desktop.
show two hemispheres with pysurfer
from surfer import Brain
lh = Brain('fs404', 'lh', 'pial')
rh = Brain('fs404', 'rh', 'pial', figure=lh._f)
lh.add_annotation('aparc', borders=False, alpha=0)
rh.add_annotation('aparc', borders=False, alpha=0.5)
"""
lh._geo_surf.actor.property.opacity = 0.3
rh._geo_surf.actor.property.opacity = 0.3
lh._geo_surf.contour.contours = [0.5]
lh._geo_surf.actor.mapper.progress = 1.0
lh._geo_surf.actor.mapper.scalar_range = array([ 0., 1.])
lh._geo_surf.enable_contours = True
lh._geo_surf.contour.number_of_contours = 4
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment