How to change color bar limits in imagesc?
90 次查看(过去 30 天)
显示 更早的评论
For heatmap, thisc command would work:
'ColorLimits',[50 100]
but it did not work for imagesc.
0 个评论
采纳的回答
Akira Agata
2020-7-8
You can do that task by setting CLim of the axes, like:
figure
imagesc(rand(4));
ax = gca;
ax.CLim = [0 1];
colorbar
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Distribution Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!