Setting the colorbar ticks

4 vues (au cours des 30 derniers jours)
Julia Moore
Julia Moore le 17 Juin 2020
Modifié(e) : Ameer Hamza le 17 Juin 2020
Hey guys!!
I am trying to set specific values to my colorbar but apparently they are not setting in the specific color limits, does anyone know how to fix this?
Thanks!

Réponses (1)

Ameer Hamza
Ameer Hamza le 17 Juin 2020
Modifié(e) : Ameer Hamza le 17 Juin 2020
I think it is better to use the correct number of colors so that the tick align with the colors
map = jet(10);
colormap(map)
colorbar

Catégories

En savoir plus sur Colormaps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by