Refresh legend from the command line
古いコメントを表示
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?
採用された回答
その他の回答 (3 件)
Junaid
2012 年 1 月 19 日
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
2012 年 1 月 19 日
Jim Hokanson
2018 年 12 月 20 日
I've found hiding and showing the legend works.
ax = gca; %might be different ...
legend(ax,'hide');
legend(ax,'show');
カテゴリ
ヘルプ センター および File Exchange で Legend についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!