Heat Map Cell values display

23 次查看(过去 30 天)
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.

采纳的回答

Adam Danz
Adam Danz 2021-3-3
编辑:Adam Danz 2021-3-3
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');

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Distribution Plots 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by