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.
댓글 수: 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개)
참고 항목
범주
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!