How cans adjust to the subplot title font size?

조회 수: 48 (최근 30일)
Steven KIM
Steven KIM 2021년 11월 23일
댓글: Steven KIM 2021년 11월 24일
Hello, everyone.
I want to grow Hs=1.5m, Tp=9sec font size in the subplot and reduce the sway font size separately, how can I modify the code?
Help me, please.
title('Sway')
[t,s]=title('H_s=1.5m, T_p=9sec','Sway', 15);
legend = gca;
legend.FontSize = 14;
Even if the font size is increased, the axis font size is also large.
I want to change only Title.

채택된 답변

Walter Roberson
Walter Roberson 2021년 11월 23일
[t,s]=title('H_s=1.5m, T_p=9sec','Sway', 'fontsize', 15);
s.FontSize = 9;
Or... use subtitle()
  댓글 수: 3
Adam Danz
Adam Danz 2021년 11월 24일
If you're using R2020b or later, also see subtitle
subtitle('My Subtitle','FontSize',12)
Steven KIM
Steven KIM 2021년 11월 24일
oh,, i got it :)
Thank you so much !

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Title에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by