In [1]:
import os
import os.path as op
from numpy import arange
from numpy.random import permutation
import nibabel as nib
from surfer import Brain

In [7]:
%gui qt

In [4]:
subject_id = "fsaverage"
subjects_dir = '/Volumes/group/awagner/sgagnon/RM/data' # os.environ["SUBJECTS_DIR"]

Plot coordinates on brain


In [31]:
coords = dict(green = [[-15,-66,54], #Hutchinson 2014 SPL (task>specific)
                      [-9,-72,57], #Hutchinson 2015 (decision uncertainty)
                      ],
                red = [[-30,-54,39], #Hutchinson 2014 (item only > cr)
                       [-39,-54,45], #Hutchinson 2015 (linear memory strength)
                       ],
                yellow = [[-39,-63,39], #Hutchinson 2014 (source>item)
                         ],
                orange = [[-39,-30,45], #Vilberg/Rugg 2007 (famil (K>M, exclusive R>K))
                          [-30,-63,45]]) #Vilberg/Rugg 2007 (famil (K>M, exclusive R>K))])

In [32]:
hemi='lh'
surf='semi7'

b = Brain(subject_id, hemi, surf, background='white')

for color in coords.keys():
    for coord in coords[color]:
        b.add_foci(coord, map_surface="white", 
                   color=color, alpha=.8, scale_factor=.5)
    
b.show_view('parietal')


Out[32]:
((-119.99999999999999,
  59.999999999999993,
  419.26721191406256,
  array([ 0.,  0.,  0.])),
 49.10600000000001)

In [ ]: