MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   Matlab中的annotation()和text() (https://www.labfans.com/bbs/showthread.php?t=23336)

poster 2019-12-10 20:41

Matlab中的annotation()和text()
 
我想知道Matlab中的annotation()和text()函数之间有什么区别?在什么情况下,其中一种优于另一种?

谢谢并恭祝安康!



[B]回答:[/B]

[URL="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/text.html"]TEXT[/URL]相对于轴放置文本。相反,“ [URL="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/annotation.html"]注解”[/URL]位置与图形相关。 “注释”不仅可以放置图形,还可以放置线条,形状,箭头等。因此,“文本”将轴的句柄作为参数(对于当前轴为gca),“注释”将图形的句柄(对于当前图形为gcf)。



[url=https://stackoverflow.com/questions/2678563]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 04:58

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.