Refresh legend from the command line
Afficher commentaires plus anciens
Right-clicking a legend gives the option to "refresh" the legend.
Does anyone know of a way to call "refresh legend" from the command line?
Réponse acceptée
Plus de réponses (3)
Junaid
le 19 Jan 2012
Dear,
legend('-DynamicLegend');
it will refresh. And update the contents dynamically, either you delete something from plot or you add something:-)
I hope this is what you are required..:-)
Stephan Heise
le 19 Jan 2012
Jim Hokanson
le 20 Déc 2018
I've found hiding and showing the legend works.
ax = gca; %might be different ...
legend(ax,'hide');
legend(ax,'show');
Catégories
En savoir plus sur Legend dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!