How do I delete all annotations on a figure but not do clf?
63 次查看(过去 30 天)
显示 更早的评论
How do I delete all annotations on a Figure? I do not want to do "clf" since that loses attributes that I want to keep. Doing "cla" does not remove the annotations.
0 个评论
采纳的回答
Ritesh Chandna
2017-4-10
Please use the below command to delete all the annotations on a figure:
>>delete(findall(gcf,'type','annotation'))
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polygons 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!