I extended the function color() so that it accepts vectors of colors. These vectors are used by line plots or marker plots with matrices. Each row of the matrix is plotted with a different color.
>x=linspace(0,1,200); y=x^(1:10)'; plot2d(x,y,color=1:10):
The trick works for statplot() too.