How to change the color of the axes graph numbers?

조회 수: 3 (최근 30일)
Erwin Avendaño
Erwin Avendaño 2017년 11월 10일
댓글: Walter Roberson 2017년 11월 11일
I mean the numbers that are outside the graph. How can I change the color?

채택된 답변

Walter Roberson
Walter Roberson 2017년 11월 10일
If it is acceptable to change the line color as well as the numbers, then change the axes numeric ruler Color property: https://www.mathworks.com/help/matlab/ref/matlab.graphics.axis.decorator.numericruler-properties.html#property_d119e713466
Otherwise, you will need to set the axes *TickLabel property to a cell array of character vectors in which each label uses tex or latex color specifications to color that one label. See https://www.mathworks.com/matlabcentral/answers/278997-matlab-label-with-different-colors-on-the-string-using-latex-interpreter
  댓글 수: 4
Erwin Avendaño
Erwin Avendaño 2017년 11월 11일
sorry is that I thought it would serve what they answered me so I accepted the answer but it did not work so I put the question again but more specific thx
Walter Roberson
Walter Roberson 2017년 11월 11일
The technique did work: I proved that with the above example. It is possible that your implementation did not work, in which case you should have posted your implementation and asked questions.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Grid Lines, Tick Values, and Labels에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by