How to change the colorbar label distance

Hello everyone,
how can I change the label distance in the colorbar? Thanks!

 Accepted Answer

c = colorbar;
clim([84 100])
c.Ticks = [84:2:100];
c.TickLabels{1} = 0;

3 Comments

Thanks, it solves the problem perfect.
You can accept the answer if you're happy with it :)
Yes, I have just accepted it :) Thanks!

Sign in to comment.

More Answers (0)

Categories

Products

Release

R2021b

Tags

Community Treasure Hunt

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

Start Hunting!