Heatmap font size. Can you change axis and cell label fonts independently?

조회 수: 46 (최근 30일)
Jobber Bekkers
Jobber Bekkers 2019년 7월 31일
댓글: dpb 2019년 8월 1일
The title says it all really.
Help would be much appreciated

답변 (1개)

dpb
dpb 2019년 8월 1일
>> hHM = heatmap(tbl,'Smoker','SelfAssessedHealthStatus');
>> hHM==gca
ans =
logical
1
>>
So, the Answer to the Q? is no...while the documentation indicates the object returned is a HeatmapChart; the handles show that there is no independent other axes object independent of the chart object in the figure...as further confirmation,
>> findobj(1)
ans =
2×1 graphics array:
Figure (1)
HeatmapChart (Count of SelfAssessedHealthStatus vs. Smoker)
>>
  댓글 수: 4
Jobber Bekkers
Jobber Bekkers 2019년 8월 1일
I want to have the axis label and pegs bigger than the cell/data text.
dpb
dpb 2019년 8월 1일
What's a "peg"?
From the example for heatmap, the following is a start...
hHM = heatmap(tbl,'Smoker','SelfAssessedHealthStatus');
hAx=axes('position',hHM.Position,'color','none');
hAx.XTick=''; hAx.YTick='';
hXL=xlabel(hAx,hHM.XLabel,'fontsize',14);
hYL=ylabel(hAx,'SelfAssessedHealthStatus','fontsize',14)
hHM.XLabel=" ";
hHM.YLabel=" ";
hYL.Position=[-0.15,0.5,0];
Salt to suit for your particular case...

댓글을 달려면 로그인하십시오.

카테고리

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