Setting the colorbar ticks

5 次查看(过去 30 天)
Julia Moore
Julia Moore 2020-6-17
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!

回答(1 个)

Ameer Hamza
Ameer Hamza 2020-6-17
编辑:Ameer Hamza 2020-6-17
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

类别

Help CenterFile Exchange 中查找有关 Colormaps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by