Effacer les filtres
Effacer les filtres

How to pin an object from command

2 vues (au cours des 30 derniers jours)
Micah
Micah le 16 Sep 2011
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!

Réponses (1)

Fangjun Jiang
Fangjun Jiang le 16 Sep 2011
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 commentaires
Micah
Micah le 16 Sep 2011
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!
Fangjun Jiang
Fangjun Jiang le 16 Sep 2011
Okay, See update!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Visual Exploration dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by