Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

annotation() and text() in Matlab

I wonder what is the difference between annotation() and text() functions in Matlab? In what cases are one of them preferred over the other?

like image 548
Tim Avatar asked Apr 20 '10 20:04

Tim


1 Answers

TEXT positions text in relation to axes. In contrast, ANNOTATION position is figure-related. ANNOTATION can put on figure not only text, but lines, shapes, arrows, etc. Consequently, TEXT takes axes handles as an argument (or gca for current axes), and ANNOTATION takes figure handles (or gcf for current figure).

like image 64
yuk Avatar answered Oct 19 '22 21:10

yuk