Change location of legend in a legned(h,{.....}) format
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello,
I was using the example found on the "Train SVM Classifiers" and there is this command to draw the legend:
legend(h,{'-1','+1','Support Vectors'});
I tried to change the location of the legend by typing:
legend(h,{'-1','+1','Support Vectors','Location', 'northwest'});
but this line did not work and give me the error "Warning: Ignoring extra legend entries. ..."
How do I go about changing the location of the legend in this case? Thanks!
댓글 수: 0
답변 (1개)
Star Strider
2016년 10월 25일
Try this:
legend(h,{'-1','+1','Support Vectors'},'Location', 'northwest');
댓글 수: 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!