How to change the color of origin lines in a plot ?

조회 수: 6 (최근 30일)
Arsalan Amin
Arsalan Amin 2021년 5월 16일
댓글: Arsalan Amin 2021년 5월 16일
Below given is the code and its graph.
But I want to change the colour of both the origin lines in the grid as depicted below, if it is possible. It's ok if both the line get same color but it would be fantastic if they both are of different color. (I don't want to center the origin or anything else, just a color change of both the identified lines).

채택된 답변

Walter Roberson
Walter Roberson 2021년 5월 16일
xline(0, 'color', [255 84 2]/255)
yline(0, 'color', [254 169 1]/255)
  댓글 수: 3
Walter Roberson
Walter Roberson 2021년 5월 16일
I opened the image in MATLAB and used the data cursor to read off the colors; I did not refer to any site for the color codes.
Arsalan Amin
Arsalan Amin 2021년 5월 16일
Got it. Thank you once again.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by