How to Hide Legend of Plot 2?
3 ビュー (過去 30 日間)
古いコメントを表示
zeys = n;
text = ['Run ',num2str(zeys)];
plot(x,y,'DisplayName',text);
plot(xmax,ymax,'^r')
legend show
0 件のコメント
回答 (1 件)
Star Strider
2022 年 10 月 14 日
Perhaps —
zeys = n;
text = ['Run ',num2str(zeys)];
hp1 = plot(x,y,'DisplayName',text);
hp2 = plot(xmax,ymax,'^r');
legend(hp1, 'Location','best)
.
.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Legend についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!