How to remove the Range from colorbar in HeatMap
Show older comments

Hello to all,
I wanted to place in the legend only the number 0 (red), 1 to yellow and 2 to green, I dont want to range from 0 to 2. It is possible to have a square red to 0, a square yellow to 1, and a square green to 2, like the NaN square?
Thanks!
Accepted Answer
More Answers (0)
Categories
Find more on Color and Styling 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!