フィルターのクリア

How do I delete all annotations on a figure but not do clf?

65 ビュー (過去 30 日間)
John Pryce
John Pryce 2017 年 4 月 7 日
コメント済み: Holden Tranquillo 2020 年 2 月 26 日
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.

採用された回答

Ritesh Chandna
Ritesh Chandna 2017 年 4 月 10 日
Please use the below command to delete all the annotations on a figure:
>>delete(findall(gcf,'type','annotation'))
  2 件のコメント
John Pryce
John Pryce 2017 年 4 月 11 日
Thank you. Readable, works, and simpler than any other method I found.
Holden Tranquillo
Holden Tranquillo 2020 年 2 月 26 日
worked thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by