필터 지우기
필터 지우기

Plotting different data

조회 수: 1 (최근 30일)
John
John 2011년 10월 3일
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

채택된 답변

Walter Roberson
Walter Roberson 2011년 10월 3일
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
John
John 2011년 10월 5일
Thanks for the advice, the latter function worked great.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by