Wrong symbols in the legend

17 次查看(过去 30 天)
Benedict Baumann
Benedict Baumann 2018-12-17
Hi, when i run my Matlab skript, my plots are all correct, but the legend only contains the same symbols. Does anybody have an idea, what might be the problem?
I use a while loop, getting the value of the red and blue circles.
Greets, BenePlot.png

回答(2 个)

madhan ravi
madhan ravi 2018-12-17

Benedict Baumann
Benedict Baumann 2018-12-17
Thanks for your answer. Unhappily this way didn't work for my problem.
In the end i just had to put the variable of each plot in the squared bracket at the beginning of the legend command.
legend ([plot_1, plot_2,plot_3, plot_4, plot_5,plot_6],'a','b','c','d','f','g','location','southeast');
I would highlight it here, but i cannot find a marker option in this editor. ;)

类别

Help CenterFile Exchange 中查找有关 Legend 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by