Plot regions and connection edges.

Xmas balls scaled is in the range [0 - 1], representing the cumulative input to each region.


In [2]:
from tvb.simulator.lab import *

Load the object


In [3]:
white_matter = connectivity.Connectivity(load_default=True)

#Compute cumulative input for each region
node_data = white_matter.weights.sum(axis=1)
scaling_factor = node_data.max()

Plot pretty pictures of what we just did


In [4]:
if IMPORTED_MAYAVI:
    xmas_balls(white_matter, node_data=node_data / scaling_factor)