Adding and deleting annotations to a panel
显示 更早的评论
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 个评论
Fred-Éric Désulmé
2017-10-26
Yeah in the same boat as you. I hope somebody answers
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!