Effacer les filtres
Effacer les filtres

How can I don't display the x values labels in heat map?

23 vues (au cours des 30 derniers jours)
Rt Ro
Rt Ro le 25 Avr 2019
Déplacé(e) : DGM le 27 Fév 2024
I don't want to display the x-values labels of the first figure (1995,1996,...,2005).untitled.jpg

Réponse acceptée

Star Strider
Star Strider le 25 Avr 2019
Try this:
data1 = randi(9, 3);
figure
h1 = heatmap(data1);
cdl = h1.XDisplayLabels; % Current Display Labels
h1.XDisplayLabels = repmat(' ',size(cdl,1), size(cdl,2)); % Blank Display Labels
Having the code you used to create those figures would help.
  4 commentaires
Dheeraj Bana
Dheeraj Bana le 27 Fév 2024
Thansk a lot!!
Star Strider
Star Strider le 27 Fév 2024
My pleasure!
A Vote would be appreciated!

Connectez-vous pour commenter.

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