Hallo Scilab experts,

The script below should color the markers in a cyclic manner. It does - however only temporary! What should be changed? I would like to keep the plot command off the loop.

Kind regards

Jens

xdel()
x=1:15;
y=x;
COLO=[5  3  2  1]//selction of color IDs
ncol=length(COLO); plot(%nan,%nan)//initialize axes
  ca=gca();//get handle
  for  i=1:15
  colo=modulo(i+ncol-1,ncol)+1;//i mapped to cyclic indices
  ca.children.children.data=[x(i),y(i)];
  ca.children.children.mark_mode  =  "on";
  ca.children.children.mark_style  =  4;
  ca.children.children.mark_size  =  25;
  ca.children.children.mark_foreground  =  COLO(colo);
  //set(ca,"auto_clear","off");
  sleep(500)
end //End of Skript

_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to