How to add and arrange a text in a plot using commands?
1 次查看(过去 30 天)
显示 更早的评论
How to add and arrange a text box in the plot by using commands in matlab?
0 个评论
采纳的回答
Mike Garrity
2014-9-29
It's hiding in the annotation command.
h = annotation('textbox')
After you've created it, you can use the set command to change things.
set(h,'String','Something or other')
set(h,'Position',[.3 .8 .4 .1])
set(h,'HorizontalAlignment','center')
You can also pass those sets into the annotation command:
annotation('textbox','String','another one','FontSize',24)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!