凡例(legend) の自動更新を行わないように設定できますか?
Show older comments
R2016b 以前と、R2017a 以降のバージョンでは、legend 関数の実行結果が異なります。
例えば、以下のコードを実行すると、R2016b までは 1 本目のラインの凡例だけが表示されていましたが、R2017a 以降では、2 番目に追加したラインの凡例も 'data1' という名前で自動的に表示されます。
figure(1)
plot(1:10,rand(1,10))
legend('Line1') % 凡例の表示
hold on
plot(1:10,rand(1,10),'x') % このコマンドで 'data1' の凡例が追加される
R2016b 以前のバージョンと同様に、凡例の表示が自動更新されないように設定する方法を教えてください。
Accepted Answer
More Answers (0)
Categories
Find more on Legend in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!