How to plot data of 3 columns with different line style.

조회 수: 3 (최근 30일)
Rangasamy Kotteeswaran
Rangasamy Kotteeswaran 2017년 8월 21일
댓글: Rangasamy Kotteeswaran 2017년 8월 21일
i am supposed to plot the data plot(EX_1(1:100,1:3),'k-'). with this I get 3 plots with same black solid style. But i need different colours. any answer. thanks in advance

채택된 답변

José-Luis
José-Luis 2017년 8월 21일
편집: José-Luis 2017년 8월 21일
Best to do it explicitly for each line, but if you want automagic:
set(groot,'defaultAxesColorOrder',[0,0,0],'defaultAxesLineStyleOrder','-|:|--');
plot(rand(10,3))
  댓글 수: 3
Adam
Adam 2017년 8월 21일
If you are in an archaic version of Matlab use
set( 0,... )
instead
Rangasamy Kotteeswaran
Rangasamy Kotteeswaran 2017년 8월 21일
thankyou. it worked

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

추가 답변 (0개)

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by