![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/614150/image.jpeg)
How to give a common title for the figure with subplots
조회 수: 42 (최근 30일)
이전 댓글 표시
Is it possible to put a common title of a figure with several subplots?
댓글 수: 0
채택된 답변
DGM
2021년 5월 11일
You may want to try suplabel(). Suplabel() can provide overarching axis labels or titles for a group of subplots.
From the example in the synopsis:
subplot(2,2,1);ylabel('ylabel1');title('title1')
subplot(2,2,2);ylabel('ylabel2');title('title2')
subplot(2,2,3);ylabel('ylabel3');xlabel('xlabel3')
subplot(2,2,4);ylabel('ylabel4');xlabel('xlabel4')
[ax1,h1]=suplabel('super X label');
[ax2,h2]=suplabel('super Y label','y');
[ax3,h2]=suplabel('super Y label (right)','yy');
[ax4,h3]=suplabel('super Title' ,'t');
set(h3,'FontSize',20)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/614150/image.jpeg)
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Title에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!