Effacer les filtres
Effacer les filtres

how to make figure annotation movable by mouse (or "interactive")

16 vues (au cours des 30 derniers jours)
Jun
Jun le 20 Oct 2011
I have a question regarding figure annotation. If I use the insert annotation from the figure menu, the annotations created will be movable by the mouse. However, if I create annotation by using the annotation function through code, then I am not able to move that annotation with mouse any more, unless I insert another annotation through the menu. Does anyone know a command that can toggle the interactive nature of the annotations? I am currently creating a custom GUI that requires the annotation to be movable by the user. Thank you.

Réponses (1)

Fangjun Jiang
Fangjun Jiang le 20 Oct 2011
Yes, you can. You just need to run plotedit(Figure) to enable it. When you do the manual insertion, it probably enables the edit mode automatically.
  3 commentaires
Fangjun Jiang
Fangjun Jiang le 20 Oct 2011
plotedit(Fig,'on');plotedit(Fig,'off');
Jun
Jun le 20 Oct 2011
thanks

Connectez-vous pour commenter.

Catégories

En savoir plus sur 2-D and 3-D Plots 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