Borrar filtros
Borrar filtros

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

15 visualizaciones (últimos 30 días)
imad dawood
imad dawood el 16 de Sept. de 2022
Respondida: Walter Roberson el 16 de Sept. de 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.

Respuestas (1)

Walter Roberson
Walter Roberson el 16 de Sept. de 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

Etiquetas

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by