How do I change the font size of the axes in a stacked plot?

조회 수: 12 (최근 30일)
Nadine G
Nadine G 2020년 9월 23일
편집: Adam Danz 2020년 9월 28일
Is there some equivalent to set(gca, 'FontSize',xy)?

답변 (1개)

Adam Danz
Adam Danz 2020년 9월 23일
편집: Adam Danz 2020년 9월 28일
Use the stackedplot handle.
h = stackedplot(T);
h.FontSize = 12;
% or
set(h, 'FontSize', 12)
If you don't have access to the stackedplot object and you have a really good reason why it's impossible to add the handle output to the stackedplot function, you can get the handle using,
h = findobj(gcf,'type','stackedplot');
Example

카테고리

Help CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by