필터 지우기
필터 지우기

subtitle on a 2x2 grid plot using sgtitle?

조회 수: 36 (최근 30일)
Michael O'Brien
Michael O'Brien 2022년 6월 16일
댓글: Voss 2022년 6월 16일
I have a 2x2 subplot with a 2 line title using a multiline cell array tile;
sgt = sgtitle({folderName,fileName});
which works fine.
What I would like is to be able to change the properties of the individual lines of text i.e. the first line (folderName) to be bold and 2 points bigger in fontsize.

채택된 답변

Voss
Voss 2022년 6월 16일
편집: Voss 2022년 6월 16일
folderName = 'MATLAB folder';
fileName = 'test.m';
sgt = sgtitle({['{\bf\fontsize{14}' folderName '}'],fileName});
  댓글 수: 2
Michael O'Brien
Michael O'Brien 2022년 6월 16일
you absolute donny don!
thank you, Voss!
Voss
Voss 2022년 6월 16일
You're welcome!

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by