Filter löschen
Filter löschen

I am getting this message " Warning : Limiting legend entries to 50 .

15 Ansichten (letzte 30 Tage)
imad dawood
imad dawood am 16 Sep. 2022
Beantwortet: Walter Roberson am 16 Sep. 2022
I am getting this message " Warning : Limiting legend entries to 50 .Specify a vector graphics objects to display more than 50 entries." when running a program with nesting for loop of 50*50 and a loop of plotting function of 50*22 what does mean and how can I get around it? – did not match any of the answers.

Antworten (1)

Walter Roberson
Walter Roberson am 16 Sep. 2022
Each plot() line generates a separate graphic object regardless of whether you plotted one dot or a massive line.
You called legend without telling it which objects to create the legend for, but you have more than 50 graphics objects. You are asking to produce a separate legend entry for each. If I understand your question correctly, you have 55000 graphics objects, would require 55000 legend entries. You would have no room left for the plot itself.
I would suggest to you that so many legend entries is unreadable. You would have a tough time making that many lines distinct

Tags

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by