Refresh legend from the command line
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (3)
Junaid
el 19 de En. de 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
el 19 de En. de 2012
Jim Hokanson
el 20 de Dic. de 2018
I've found hiding and showing the legend works.
ax = gca; %might be different ...
legend(ax,'hide');
legend(ax,'show');
Categorías
Más información sobre Legend en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!