Setting the colorbar ticks

조회 수: 4 (최근 30일)
Julia Moore
Julia Moore 2020년 6월 17일
편집: Ameer Hamza 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에서 Colorbar에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by