Setting default legend position
조회 수: 20 (최근 30일)
이전 댓글 표시
I'm defining some default print settings for my figures and I would like to set the default legend location as 'best'
% Print settings
set(groot, 'DefaultTextInterpreter', 'LaTeX');
set(groot, 'DefaultAxesTickLabelInterpreter', 'LaTeX');
set(groot, 'DefaultAxesFontName', 'LaTeX');
set(groot, 'DefaultLegendInterpreter', 'LaTeX');
set(groot, 'DefaultAxesBox', 'on');
what is the related command?
thanks!
댓글 수: 0
답변 (1개)
Clayton Birchenough
2019년 9월 9일
Yes, to set the default location of the legend to best (in 2019a), use:
set(groot, 'defaultLegendLocation', 'best')
댓글 수: 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!