How to plot specific colors for 1 graph containing 15 lines?

2 views (last 30 days)
Hello, I am plotting many rows of data (10,000) against 15 columns and am trying to specify the line color/marker for each of the 15 lines and then show all on a single graph.
The code goes like this: plot(scenario1(:,1),scenario1(:,2:15));
Everything is fine. Then I try to tell line 1 to be red, line 2 to be green, and so on. So I changed it to:
plot(scenario1(:,1),scenario1(:,2:15),'r','g','b','k','--r','--g','--b','--k','+r','+g','+b','+k','or','og','dk');
Obviously this is wrong. Maybe I'm just being lazy, but I don't want to call out each of the 15 plots (like this example: plot(x,y1,'-ro',x,y2,'-.b'))
Is it possible, to do this?
thx

Answers (1)

Image Analyst
Image Analyst on 7 May 2015
See my attached color_order demos.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!