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.

 Respuesta aceptada

Adam Danz
Adam Danz el 3 de Mzo. de 2021
Editada: Adam Danz el 3 de Mzo. de 2021

0 votos

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');

Más respuestas (0)

Categorías

Más información sobre Data Distribution Plots en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 3 de Mzo. de 2021

Editada:

el 3 de Mzo. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by