Trying to Customize a heatmap color bar and thresholds
26 views (last 30 days)
Show older comments
Commented: blue_Steel on 7 Sep 2022
I'm trying to create a heatmap but I only want to it to show color if the value is either above 10 or below -10. Otherwise it will just be white if it's within this 'dead zone'.
Additionally I'd like to have different colors for values above 10 and yet another color for values below -10.
Is there a way to customize the colormap for something like this?
Kevin Holly on 7 Sep 2022
Edited: Kevin Holly on 7 Sep 2022
cmap = [1 0 0; 1 1 1;1 1 1; 1 1 1; 1 1 1; 0 0 1];
c.Limits = [-15 15];
More Answers (0)
Find more on Data Distribution Plots 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!