How to change the colorbar label distance

11 Ansichten (letzte 30 Tage)
Eryang Wang
Eryang Wang am 21 Sep. 2023
Kommentiert: Eryang Wang am 21 Sep. 2023
Hello everyone,
how can I change the label distance in the colorbar? Thanks!

Akzeptierte Antwort

Florian Bidaud
Florian Bidaud am 21 Sep. 2023
Bearbeitet: Florian Bidaud am 21 Sep. 2023
c = colorbar;
clim([84 100])
c.Ticks = [84:2:100];
c.TickLabels{1} = 0;
  3 Kommentare
Florian Bidaud
Florian Bidaud am 21 Sep. 2023
You can accept the answer if you're happy with it :)
Eryang Wang
Eryang Wang am 21 Sep. 2023
Yes, I have just accepted it :) Thanks!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Color and Styling finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by