Effacer les filtres
Effacer les filtres

How to change color bar limits in imagesc?

122 vues (au cours des 30 derniers jours)
Zeynab Mousavikhamene
Zeynab Mousavikhamene le 7 Juil 2020
For heatmap, thisc command would work:
'ColorLimits',[50 100]
but it did not work for imagesc.

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Data Distribution Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by