How to set minorticks in colorbar?
17 ビュー (過去 30 日間)
古いコメントを表示
Hello,I am trying to set XMinorTicks on Colorbar, by doing:cb= colorbar('southoutside', 'Ticks',[0:0.25:0.75]); cb.XMinorTick = 'on';
I tried set(cb, 'XMinorTick', 'on') as well, but it does not work out. I tried to find out if this property is still available for colorbar but I did not find a answer.
Can anybody help me how to set minorticks for colorbar?
Thanks in advanceFelix
0 件のコメント
回答 (1 件)
Simon Chan
2022 年 1 月 7 日
Try the following:
ax = axes('position',cb.Position);
set(ax,'XMinorTick','on');
2 件のコメント
Simon Chan
2022 年 1 月 7 日
Sorry I don't have my laptop on hand and hence just answer via my phone. You may try the following.
Note that it is not yet tested.
ax.XMinorTickValues = 0:0.625:1.25
参考
カテゴリ
Help Center および File Exchange で Red についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!