how to adjust the font size of RowLabels and ColumnLabels of HeatMap

84 ビュー (過去 30 日間)
Li Xue
Li Xue 2018 年 5 月 7 日
回答済み: Marco Riani 2020 年 12 月 5 日
How to adjust the font size of RowLabels and ColumnLabels of HeatMap?

回答 (2 件)

Li Xue
Li Xue 2018 年 5 月 7 日
Figured it out. It is something like:
heatmap_obj=HeatMap(B);
h=plot(heatmap_obj);
h.FontSize = 14;

Marco Riani
Marco Riani 2020 年 12 月 5 日
h.FontSize changes the FontSize of all xlabels, ylabels and the numbers inside the heatmap.
In order to change the FontSize of a particular label it seems to me it is necessary to use Latex instruction \fontsize (see screenshot below)

カテゴリ

Help Center および File ExchangeData Distribution Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by