How to pin an object from command

I read the tutorial and want to pin an annotation object, but I am creating them from a function. Is there a way to pin them to a point as an option of the annotation function? The tutorials only specify how to do it by selecting it from the menus.
Thanks!

回答(1 个)

Fangjun Jiang
Fangjun Jiang 2011-9-16

0 个投票

use annotation() and specify the position.
Follow this link. You need to create a function which is provided. http://www.mathworks.com/help/techdoc/creating_plots/bquk5ia-1.html

2 个评论

But then when the user zooms the arrow are relative to the figure and not the axis and get out of place. I want them to stay pointing towards a point on the axis regardless of the zoom level.
Thanks for answering though!
Okay, See update!

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Data Exploration 的更多信息

提问:

2011-9-16

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by