How to change the colorbar label distance

3 vues (au cours des 30 derniers jours)
Eryang Wang
Eryang Wang le 21 Sep 2023
Commenté : Eryang Wang le 21 Sep 2023
Hello everyone,
how can I change the label distance in the colorbar? Thanks!

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Colormaps dans Help Center et File Exchange

Tags

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by