Effacer les filtres
Effacer les filtres

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

65 vues (au cours des 30 derniers jours)
John Pryce
John Pryce le 7 Avr 2017
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.

Réponse acceptée

Ritesh Chandna
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
John Pryce
John Pryce le 11 Avr 2017
Thank you. Readable, works, and simpler than any other method I found.
Holden Tranquillo
Holden Tranquillo le 26 Fév 2020
worked thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB 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!

Translated by