What is the reason for color of lines are repeating?
4 views (last 30 days)
Show older comments
I was run richards program. This program was run successfully but I am not clear about graphs. Because many number of lines are plotted here and also same color are shown what is meant by repeat colors. Please give some possible solution.
0 Comments
Answers (2)
Mischa Kim
on 19 Feb 2014
Venkatesan, could be that there is a
hold on
command, somewhere in the code? If so, replace by
hold all
to get differently colored line plots.
0 Comments
Image Analyst
on 19 Feb 2014
There is a set of default colors for lines and once they're all used, the colors will repeat. So if you have many lines, there may be repeated colors. See my demo, attached below in clue, on changing the default color order.
0 Comments
See Also
Categories
Find more on Data Exploration 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!