Text box as subplot
조회 수: 72 (최근 30일)
이전 댓글 표시
I would like to insert a textbox as a subplot in my figure. I have a figure with 3 graphs and the fourth subplot I would like to insert a textbox with exlpanantion.
Many thanks
댓글 수: 0
채택된 답변
Ilham Hardy
2015년 3월 26일
Something like this?
figure(1)
p1 = subplot(4,1,1);
p2 = subplot(4,1,2);
p3 = subplot(4,1,3);
p4 = subplot(4,1,4);
text(0.5,0.5,'Explanation'); axis off
댓글 수: 2
Ilham Hardy
2015년 3월 26일
편집: Ilham Hardy
2015년 3월 26일
Jelle,
position can be changed based on you axis setting.
If you change the part axis off to axis on you can see that the text location is at x=0.5 and y=0.5 which corresponds with text( 0.5,0.5 ,'Explanation');
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Subplots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!