How to change the color of the axes graph numbers?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Erwin Avendaño
am 10 Nov. 2017
Kommentiert: Walter Roberson
am 11 Nov. 2017
I mean the numbers that are outside the graph. How can I change the color?
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 10 Nov. 2017
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 Kommentare
Walter Roberson
am 11 Nov. 2017
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Axes Appearance finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!