Adding and deleting annotations to a panel
Mostrar comentarios más antiguos
Hi, I have created a GUI and I am displaying a figure in a panel. This figure has annotations but they do not display when the figure axis is displayed on the panel. To show the annotations, I have tried using:
ann1 = findall(fighandle,'tag', 'scribeOverlay');
copyobj(ann1,Parent);
where fighandle is the handle of the figure and Parent is the handle of the panel on which the figure is displayed. This works to display the annotations, and I can then delete the annotations using:
delete(findall(Parent,'tag', 'scribeOverlay'))
But when I try to add another annotation using the same method, I get the following error:
Error using matlab.graphics.shape.internal.ScribeStackManager/loadLayer Layer already exists
Error in matlab.graphics.shape.internal.AnnotationPane/setParentImpl
Any help would be great! Thanks.
1 comentario
Fred-Éric Désulmé
el 26 de Oct. de 2017
Yeah in the same boat as you. I hope somebody answers
Respuestas (0)
Categorías
Más información sobre MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!