How to change color bar limits in imagesc?
85 views (last 30 days)
Show older comments
Zeynab Mousavikhamene
on 7 Jul 2020
Commented: Zeynab Mousavikhamene
on 8 Jul 2020
For heatmap, thisc command would work:
'ColorLimits',[50 100]
but it did not work for imagesc.
0 Comments
Accepted Answer
Akira Agata
on 8 Jul 2020
You can do that task by setting CLim of the axes, like:
figure
imagesc(rand(4));
ax = gca;
ax.CLim = [0 1];
colorbar
More Answers (0)
See Also
Categories
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!