How to change color bar limits in imagesc?

127 次查看(过去 30 天)
For heatmap, thisc command would work:
'ColorLimits',[50 100]
but it did not work for imagesc.

采纳的回答

Akira Agata
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 CenterFile Exchange 中查找有关 Data Distribution Plots 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by