How to get handles of a legend that was automatically generated?
조회 수: 23 (최근 30일)
이전 댓글 표시
I am trying to move an automatically generated (did not create command like: lgd=legend(...)) legend in a subplot.
How to access that legend? so that I can use lgd.location=best.
Also, legend moving sometimes disturbs axis extents, how to avoid that? ------------------------
Edit1: I am using following code to generate plot that generates automatic legends:
parallelcoords(P1to5,'Group',...
Group1to5,'Labels',Labels1to5);
댓글 수: 0
채택된 답변
추가 답변 (1개)
Aiyush
2019년 3월 23일
This only works when you want to retrieve 1 legend. If there are multiple legends on a complex figure, and you want to modify let's say the font size of the 2nd legend, then this is more difficult.
댓글 수: 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!