how to clean a panel which contains axes?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Stephani Kanga
am 11 Okt. 2020
Bearbeitet: Mario Malic
am 11 Okt. 2020
I have a function that generates an array of axes but the number of axes that are generated is not constant, neither their position. So, i want every time that main function calls this function, to clean the panel before the new axes will be produced.
3 Kommentare
Mario Malic
am 11 Okt. 2020
Bearbeitet: Mario Malic
am 11 Okt. 2020
It should be done in the code where the figure is created (maybe prior to calling the function), or you can pass a figure handle to that function and clear it in there.
Akzeptierte Antwort
Ameer Hamza
am 11 Okt. 2020
You can use findall() to find the children axes
delete(findall(p, 'type', 'axes')); % p is handle of panel
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!