Setting default legend position

12 次查看(过去 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!

回答(1 个)

Clayton Birchenough
Yes, to set the default location of the legend to best (in 2019a), use:
set(groot, 'defaultLegendLocation', 'best')

类别

Help CenterFile Exchange 中查找有关 Legend 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by