How do I delete all annotations on a figure but not do clf?
65 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
John Pryce
il 7 Apr 2017
Commentato: Holden Tranquillo
il 26 Feb 2020
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 Commenti
Risposta accettata
Ritesh Chandna
il 10 Apr 2017
Please use the below command to delete all the annotations on a figure:
>>delete(findall(gcf,'type','annotation'))
2 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!