<< NL_M_NodeBS NL_M: Mobility NL_M_NodeRD >>

NARVAL >> NL_M: Mobility > NL_M_NodeDisplayUpdate

NL_M_NodeDisplayUpdate

Update the visualization parameters of a node.

Calling Sequence

[F] = NL_M_NodeDisplayUpdate(F,I,R,C)

Arguments

F :

Graph handle.

I :

Node index.

R :

Node radius.

C :

Node color.

Description

NL_M_NodeDisplayUpdate updates the visualization parameters (radius R and color C) of the node I inside the graph described by F.

Examples

n=3;
cr=250;
nx=[100 200 300];
ny=[100 300 100];
name='mobility';
t=[];
h=[];
[g]=NL_G_MakeGraph(name,n,t,h,nx,ny);//creation of a network graph
[h,t]=NL_M_Locality(g.node_x,g.node_y,cr);//application of NL_M_Locality
g.head=h;
g.tail=t;
i=1;//window index
name="mobility";//name
f=NL_M_Background(i,name);//initial square area
r=10;//radius
c=1;//color 
f=NL_M_GraphDisplayUpdate(g,i,r,c);//placement of nodes
//f.pixmap='on'; //set the pixmap mode
[f]=NL_M_NodeDisplayUpdate(f,1,20,1);//application of NL_M_NodeDisplayUpdate
[f]=NL_M_NodeDisplayUpdate(f,2,30,2);//application of NL_M_NodeDisplayUpdate
[f]=NL_M_NodeDisplayUpdate(f,3,40,5);//application of NL_M_NodeDisplayUpdate
//show_pixmap();
//f.pixmap='off'; //set the pixmap mode

Report an issue
<< NL_M_NodeBS NL_M: Mobility NL_M_NodeRD >>