Date: 2018-09-14 18:15
Sender: Chris Rorden
You can use the 'color' column of the BrainNet viewer node format
to set the color of the nodes. You can use the value of each edge
in the edge format to set the color of the edges. The scripts below
show you how to set the colors for just the edges, or a combination
of edge and nodes. One script is in Pascal (which is inbuilt in
Surfice but unfamiliar to many users) and the other is in Python
(which requires you to have Python installed). The two languages
are very similar to each other, so it is easy to translate between
the two, just remember Pascal expects booleans to be true/false
while Python expects 1/0:
begin
resetdefaults();
meshload('BrainMesh_ICBM152Left.mz3');
edgeload('simple.edge');
shaderxray(0.5,1);
nodesize(6, true);
edgesize(3,true);
nodehemisphere(-1);
edgecolor('actc',true);
nodethresh(0.01,4.0);
nodecolor('actc',true);
end.
import gl
gl.resetdefaults()
gl.meshload('BrainMesh_ICBM152Left.mz3')
gl.edgeload('simple.edge')
gl.shaderxray(0.5,1)
gl.nodesize(6, 0)
gl.edgesize(3,0)
gl.nodehemisphere(-1)
gl.nodethresh(0.01,4.0)
gl.nodecolor('actc',1)
gl.edgecolor('actc',1)
gl.edgethresh(0, 1)
|