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

조회 수: 82 (최근 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 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