In a color bar, how can I change to color of the ticks, number labels, and string label?
14 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Matthew Thompson
am 7 Jul. 2021
Beantwortet: Cris LaPierre
am 7 Jul. 2021
I can add a label and change its color as follows:
cbar = colorbar;
cbar.Label.String = 'Prob. Density';
cbar.Label.Color = [1,1,1];
I'd also like to make the tick marks and number labels white with something like cbar.Ticks.Color = [1,1,1], but can't quite find the right syntax.
0 Kommentare
Akzeptierte Antwort
Cris LaPierre
am 7 Jul. 2021
cbar = colorbar;
cbar.Label.String = 'Prob. Density';
cbar.Color = "w";
set(gcf,'Color',[0.5 0.5 0.5])
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Color and Styling 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!
