How to change color bar limits in imagesc?

조회 수: 75(최근 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개)

범주

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!

Translated by