How to change color bar limits in imagesc?
조회 수: 73 (최근 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!