Display colorbar with evenly spaced tick intervals but unequal difference between tick values
14 views (last 30 days)
Show older comments
Himanshu Saxena on 27 Aug 2022
Commented: Himanshu Saxena on 31 Aug 2022
How to display colorbar with evenly spaced tick intervals (i.e., equal sized blocks) but with unequal difference between tick values? (I don't want a log scale)
I have attached a figure indicating the required format of colorbar.
Chunru on 27 Aug 2022
% change ticks and ticklabels to the values you want
h.Ticks=[0 10 20 30 40 50 100 200 255];
h.TickLabels = string([0 0.1 0.2 0.3 0.4 0.5 1 2 2.56]);
Find more on Axis Labels in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!