Question: Plotting question

I am very, very new to Maple and I know practically nothing. I have to create a number line, which I realize I use the plot command and x-axis, but that's about all I know. As an example, my professor gave "plot([[1,0],[5,0]],color=black,thickness=5);

I understand this, and when I try it, it works. However, I need to plot multiple intervals on the same line, and change their color. For example, I need to go from negative infinity (or -10 for simplicity) to -1/(sqrt(3)), then from that to -.4, then from -.4 to +.4, and so forth. Let's say I want the first section to be blue, then the next section to be red, then green, then blue again, then red again. I also need a legend. And I have no idea what I'm doing. Any help would be greatly appreciated!

Please Wait...