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 で Printing and Saving についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!