Replace colorbar values with labels and center the tick marks?
Show older comments
Hello, Is there a way to replace colorbar values with labels and center the tick marks? Here is an example:
data=randi(10,10,10);
pcolor(data);colormap(jet(10));colorbar
This displays the values 1-10 on the colorbar, but I want to replace those values with labels (i.e., strings) and have the tick marks centered in the middle of each color interval.
Any help would be appreciated. Thanks, Dan
Accepted Answer
More Answers (0)
Categories
Find more on Colorbar 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!