How to change color bar limits in imagesc?

125 ビュー (過去 30 日間)
Zeynab Mousavikhamene
Zeynab Mousavikhamene 2020 年 7 月 7 日
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 Center および File ExchangeData Distribution Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by