Heat Map Cell values display

35 vues (au cours des 30 derniers jours)
Pappu Murthy
Pappu Murthy le 3 Mar 2021
Modifié(e) : Adam Danz le 3 Mar 2021
I noticed the cell values are displayed with arbitrary size and with 'normal' fontweight.
I wonder whether one can choose, the font, and fontweight for the diplayed values on each cell.

Réponse acceptée

Adam Danz
Adam Danz le 3 Mar 2021
Modifié(e) : Adam Danz le 3 Mar 2021
The imagesc demo in this answer produces a plot nearly identical to a heatmap and the last line allows you for format the cell labels.
Example of setting cell labels (adaptation of the last line from that answer),
th = text(xTxt(:), yTxt(:), labels(:), ...
'VerticalAlignment', 'middle','HorizontalAlignment','Center',...
'FontSize', 12, 'FontWeight','bold','Color','g');

Plus de réponses (0)

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