How do I delete all annotations on a figure but not do clf?
65 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
John Pryce
le 7 Avr 2017
Commenté : Holden Tranquillo
le 26 Fév 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 commentaires
Réponse acceptée
Ritesh Chandna
le 10 Avr 2017
Please use the below command to delete all the annotations on a figure:
>>delete(findall(gcf,'type','annotation'))
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!