In [1]:
from mpl_toolkits.mplot3d import Axes3D
%pylab nbagg
from tvb.simulator.lab import *
Populating the interactive namespace from numpy and matplotlib
   INFO  log level set to INFO

Display the local connectivity kernel definining the local coupling strength for one focal point

When defining stimuli on the cortical surface, it's useful to visualize the spatial pattern being implemented:

Here, we'll redefine the local connectivity kernel,

In [5]:
# configure local connectivity kernel
loc_conn = local_connectivity.LocalConnectivity(cutoff=20.0)
loc_conn.equation.parameters['sigma'] = 10.0
loc_conn.equation.parameters['amp'] = 1.0

# configure cortical surface
ctx = cortex.Cortex(load_default=True)
ctx.local_connectivity = loc_conn
ctx.coupling_strength = 0.0115

# plot 
ax = subplot(111, projection='3d')
x, y, z = ctx.vertices.T
ax.plot_trisurf(x, y, z, triangles=ctx.triangles, alpha=0.1, edgecolor='none')
<mpl_toolkits.mplot3d.art3d.Poly3DCollection at 0x19b6d748>
In [6]:

This website does not host notebooks, it only renders notebooks available on other websites.

Delivered by Fastly, Rendered by Rackspace

nbviewer GitHub repository.

nbviewer version: 89297bd

nbconvert version: 5.3.1

Rendered (Tue, 17 Oct 2017 23:59:38 UTC)

Region area, mean (mm:math:`^2`)3038.51244522
Region area, maximum (mm:math:`^2`)9333.39347792
Number of regions76
Region area, minimum (mm:math:`^2`)540.903695267