Plotting different data

2 views (last 30 days)
John
John on 3 Oct 2011
So I am trying to plot about 150 different things on a matlab figure window and I was wondering if there was any possible way for each of the lines plotted to be different from one another. I would normally use Hold All however this only works for the first 7 plots until it cycles from the beginning again. Can anyone help me with this issue? Thanks in advance

Accepted Answer

Walter Roberson
Walter Roberson on 3 Oct 2011
Well, you could look at the axes ColorOrder property, but you are going to have a very difficult time distinguishing all those.
If you are plotting a large number of different traces, I recommend using the MATLAB File Exchange contribution "plt", which makes it easy to supply lists of colors and styles and markers and will automatically use each combination.
plt() handles up to 99 traces per plot at the same time: more if you turn off the generation of the legend.
There is another contribution to help pick out the maximally perceptually different colors: see http://www.mathworks.com/matlabcentral/fileexchange/29702
  1 Comment
John
John on 5 Oct 2011
Thanks for the advice, the latter function worked great.

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!