How do I delete all annotations on a figure but not do clf?
조회 수: 39 (최근 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에서 Interactive Control and Callbacks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!