How to change color bar limits in imagesc?

121 Ansichten (letzte 30 Tage)
Zeynab Mousavikhamene
Zeynab Mousavikhamene am 7 Jul. 2020
For heatmap, thisc command would work:
'ColorLimits',[50 100]
but it did not work for imagesc.

Akzeptierte Antwort

Akira Agata
Akira Agata am 8 Jul. 2020
You can do that task by setting CLim of the axes, like:
figure
imagesc(rand(4));
ax = gca;
ax.CLim = [0 1];
colorbar

Weitere Antworten (0)

Kategorien

Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by