Text box as subplot
88 次查看(过去 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!