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 Center および File ExchangeColorbar についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by