Clear Filters
Clear Filters

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

15 views (last 30 days)
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.

Answers (1)

Walter Roberson
Walter Roberson on 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

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!