How to change color bar limits in imagesc?

조회 수: 128 (최근 30일)
Zeynab Mousavikhamene
Zeynab Mousavikhamene 2020년 7월 7일
댓글: Zeynab Mousavikhamene 2020년 7월 8일
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