Clearing legend in GUI plot
21 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello all,
I'm working on my first GUI and I am having trouble getting the legend to clear/hide when I hide a figure. I am able to hide the axes and the data plot using 'cla' but I can't figure out how to make the legend go away.
Any thoughts would be much appreciated! -Amanda
0 Commenti
Risposte (2)
Azzi Abdelmalek
il 21 Ago 2013
Modificato: Azzi Abdelmalek
il 21 Ago 2013
legend('hide')
%for your GUI it is:
legend(handles.axes1,'hide')
2 Commenti
KAE
il 18 Lug 2017
If you instead want to delete the legend from your GUI rather than hide it,
legend(handles.axes1, 'off');
0 Commenti
Vedere anche
Categorie
Scopri di più su Legend in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!