How to change the colorbar label distance

2 views (last 30 days)
Hello everyone,
how can I change the label distance in the colorbar? Thanks!

Accepted Answer

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

Sign in to comment.

More Answers (0)

Categories

Find more on Colormaps in Help Center and File Exchange

Tags

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!