필터 지우기
필터 지우기

line color in figure

조회 수: 3 (최근 30일)
Yonghyun
Yonghyun 2017년 1월 30일
편집: Stephen23 2017년 1월 30일
I'd like to change the color of the diagonal axis. Please look at the picture below.
  댓글 수: 1
Jan
Jan 2017년 1월 30일
Which line is "the diagonal axis"? Please post your code and explain, what you have tried so far. Thanks.

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

답변 (1개)

Stephen23
Stephen23 2017년 1월 30일
편집: Stephen23 2017년 1월 30일
If you plot all of the lines at once then they will automatically be colored using the axes ColorOrder:
N = 16;
A = linspace(0,pi,N);
X = cos(A);
Y = sin(A);
X(2,:) = 0;
Y(2,:) = 0;
plot(X,Y)
axis equal
The documentation explains how the ColorOrder can be changed:

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by