I am getting this message " Warning : Limiting legend entries to 50 .
조회 수: 15 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (1개)
Walter Roberson
2022년 9월 16일
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
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Legend에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!