Question: How do you create a plot with different colours using a do loop?

Hi,

I'm relatively new to Maple and was wondering if there was a way to use a do loop to plot a succession of graphs with different colors and legends.
So far I have

for C to 7 do
S := 'S';
S := .7+.1*C;
p || C := plot(R[123], lambda = 5 .. 25, y = 0 .. 1, legend = "S=0.7+(0.1*C)")
end do ;

display(p1,p2,p3,p4,p5,p6,p7);

But I can't figure out how to actually get the legend to update or to assign a new color to each line.

 

Any help wold be greatly appreciated!

Please Wait...