Heatmap font size. Can you change axis and cell label fonts independently?
조회 수: 46 (최근 30일)
이전 댓글 표시
The title says it all really.
Help would be much appreciated
댓글 수: 0
답변 (1개)
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
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 Center 및 File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!