Create Heatmap with custom colorbar (i.e. <0.01, <0.05)

3 vues (au cours des 30 derniers jours)
Gerrit Liedtke
Gerrit Liedtke le 2 Juin 2019
Commenté : KALYAN ACHARJYA le 3 Juin 2019
Hi,
I'd like to plot a heatmap from my NxN matrix data. These values range from 0 to 1 and I want to have a color for each values smaller than 0.01, 0.05, 0.1, etc. and a color bar which displays '<0.01', '<0.05', etc.
I saw this in a presentation and I was wondering how to do that.
Thanks for help
  2 commentaires
KALYAN ACHARJYA
KALYAN ACHARJYA le 3 Juin 2019
ii.png
KALYAN ACHARJYA
KALYAN ACHARJYA le 3 Juin 2019
You can change the levels and colors as per your requirements.

Connectez-vous pour commenter.

Réponses (1)

KSSV
KSSV le 3 Juin 2019
Read about pcolor, colorbar and colormap.

Catégories

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

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by